A

Admin • 828.43K Points
Coach

Q. What happens if `wait()` is called outside a synchronized context?

  • (A) It works normally
  • (B) Thread is paused
  • (C) IllegalMonitorStateException is thrown
  • (D) Thread becomes daemon

Explanation by: Admin
`wait()` must be called from within a synchronized block or method.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.