Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: How does the wait-notify mechanism work in Java?
Answer: wait() and notify() are methods used for inter-thread communication. wait() makes a thread wait until another thread invokes notify() or notifyAll().
Is it helpful? Yes No

Most helpful rated by users:

©2026 WithoutBook