Multiple choice technology programming languages

If a thread goes to sleep in synchronized block. (Which one is false)

  1. it is still alive

  2. It will release all hold locks

  3. It comes to runnable state after sleep time expired

  4. No other thread can enter into the synchronized.

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

Thread.sleep() does NOT release synchronized locks - the thread keeps holding all locks while sleeping. It remains alive (not terminated) and transitions back to runnable state after the sleep duration. Since the lock is held, other threads cannot enter the same synchronized block.