Exam 1z0-809 All QuestionsBrowse all questions from this exam
Question 152

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

    Correct Answer: C, D

    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.

Discussion
laura_lu93Options: CD

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.

laura_lu93Options: CD

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.

Svetleto13Options: CD

C and D are correct

steefaandOptions: CD

C and D should be correct.

duydnOptions: AD

A & D are correct