Multithreading Interview Question & Answers

  1. Why wait () notify () and notifyAll () are in object class and not in Thread class?

These methods works on the locks and locks are associated with Object and not Threads. Hence, it is in Object class.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.