Which one of the following statements about a thread re-entering a monitor it already holds is true?
Answer: A
Monitors count entries by owner, so a synchronized method calling another synchronized method on the same object simply increments the count and releases the lock when the outermost region exits. Without reentrancy any such call, including a superclass call, would deadlock immediately.
Please log in or register to report this question.