Which two statements are true about synchronization and locks? (Choose two.)
Which two statements are true about synchronization and locks? (Choose two.)
A thread exclusively owns the intrinsic lock of an object between the time it acquires the lock and the time it releases it. Additionally, a thread automatically acquires the intrinsic lock on a synchronized method's object when entering that method. These two statements accurately describe the behavior of intrinsic locks and synchronization in Java.
C and D are correct! A is wrong. -> synchronized statement won’t acquires “intrinsic lock” but a specified object that provides the intrinsic lock B is wrong -> The lock release occurs even if the return was caused by an uncaught exception.
C and D are correct! A is wrong. -> synchronized statement won’t acquires “intrinsic lock” but a specified object that provides the intrinsic lock B is wrong -> The lock release occurs even if the return was caused by an uncaught exception.
C and D are correct
C and D should be correct.
A & D are correct