Junior — Middle
In which class is the notifyAll method implemented for thread notification?
sobes.tech AI
Answer from AI
The notifyAll() method is implemented in the java.lang.Object class. In Java, each object has a monitor, and the methods wait(), notify(), notifyAll() are defined specifically in the Object class. This is because thread synchronization and notification occur at the monitor level of the object, not at the class level.