i'm not sure but EJB use container-managed transactions so it doesn’t need to use begin/commit and there is no method entityManager.lock(Object) so correct answer is A
Yes, but JPA can be used without a Container, from Java SE, in which case, it is necessary to perform the (mandatory) transactions manually.
upvoted 1 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
orjava
7 months agodevmsaleh
1 year, 10 months agokozionov
2 years, 8 months agopeteVln
7 months, 1 week ago