UKG Interview Question

Why wait notify and notifyAll in Object class SQL query to find Employee who is also manager (self join) Project Discussion