D is the correct asnwer.
JSR 338 JPA 2.1 page 95 of the specification:
When an application locks an entity with LockModeType.PESSIMISTIC_READ and later updates that entity, the lock must be converted to an exclusive lock when the entity is flushed to the database[42].
Answer D.
LockModeType.READ Synonymous with OPTIMISTIC.
PESSIMISTIC_READ - locks the record with read lock state when you read the record. This prevents other transactions from changing the record, but still allows them to read it.
PESSIMISTIC_WRITE - locks the record, preventing other transaction from reading and writing it.
This section is not available anymore. Please use the main Exam Page.1z0-900 Exam Questions
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.
maurytin
7 months, 3 weeks agoorjava
1 year, 3 months agodevmsaleh
2 years, 7 months agoemtchan
3 years, 1 month ago