Domanda di colloquio di Miratech

Why are the wait and notify functions inside the object class.