Which two statements are true about synchronization and locks? (Choose two.)
A. A thread automatically acquires the intrinsic lock on a synchronized statement when executed.
B. The intrinsic lock will be retained by a thread if return from a synchronized method is caused by an uncaught exception.
C. A thread exclusively owns the intrinsic lock of an object between the time it acquires the lock and the time it releases it.
D. A thread automatically acquires the intrinsic lock on a synchronized method’s object when entering that method.
E. Threads cannot acquire intrinsic locks on classes.
C and D
C, D
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.
A,D
I think so…