Why wait, notify and notifyAll are declared in Object class and not in Thread class? | javapedia.net