Java SE 8 Programmer II — Question 139

Which two statements are true about synchronization and locks? (Choose two.)

Answer options

Correct answer: A, B

Explanation

Option A is correct because a thread does indeed automatically acquire the intrinsic lock when executing a synchronized statement. Option B is also correct, as the lock remains with the thread even if it exits due to an uncaught exception. Options C, D, and E are incorrect as they misrepresent the behavior of lock acquisition and ownership in Java's synchronization model.