Home » Java Programming » Threads

Which class or interface defines the wait(), notify(),and notifyAll() methods?

Correct Answer: Object

Explanation:

The Object class defines these thread-specific methods.


Option B, C, and D are incorrect because they do not define these methods. And yes, the Java API does define a class called Class, though you do not need to know it for the exam.


← Previous Question Next Question→

More Questions from Threads

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion