- 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.
These methods works on the locks and locks are associated with Object and not Threads. Hence, it is in Object class.