Pregunta de entrevista de Miratech

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