Java - Why wait, notify and notifyAll are defined in Object Class and not in Thread Class

In Java locks are made available on object basis hence wait, notify and notifyall are defined in Object class.

Comments

Popular posts from this blog

EJB - Stateful vs Stateless

Inversion of Control vs Dependency Injection