nerdexam
Oracle

1Z0-898 · Question #34

An application that uses pessimistic locking calls an update Data method that results in a LockTimeoutException being thrown. What three statements are correct? (Choose three)

The correct answer is A. The current transaction continues. D. The current statement is rolled back. F. The LockTimeoutException can be caught, and the update Data method retried. LockTimeoutExceptionis thrown by the persistence provider when an pessimistic locking conflict occurs that does not result in transaction rollback. This exception may be thrown as part of an API call, at, flush or at commit time. The current transaction, if one is active, will…

Advanced Topics

Question

An application that uses pessimistic locking calls an update Data method that results in a LockTimeoutException being thrown. What three statements are correct? (Choose three)

Options

  • AThe current transaction continues.
  • BThe current statement continues.
  • CThe current transaction is rolled back.
  • DThe current statement is rolled back.
  • EThe LockTimeoutException can NOT be caught.
  • FThe LockTimeoutException can be caught, and the update Data method retried.

How the community answered

(25 responses)
  • A
    76% (19)
  • B
    4% (1)
  • C
    4% (1)
  • E
    16% (4)

Explanation

LockTimeoutExceptionis thrown by the persistence provider when an pessimistic locking conflict occurs that does not result in transaction rollback. This exception may be thrown as part of an API call, at, flush or at commit time. The current transaction, if one is active, will be not be marked

Topics

#pessimistic locking#LockTimeoutException#statement rollback#transaction continuation

Community Discussion

No community discussion yet for this question.

Full 1Z0-898 Practice