Multiple choice technology web technology

The object lock is relenquished when the notifying thread invokes the notify method.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Invoking the notify() method wakes up a single thread waiting on the object's monitor, but it does not immediately relinquish the object lock. The lock is only released when the synchronized block or method execution finishes by the current thread.