Java Programming - Threads - Discussion

Discussion Forum : Threads - General Questions (Q.No. 14)
14.
Which class or interface defines the wait(), notify(),and notifyAll() methods?
Object
Thread
Runnable
Class
Answer: Option
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.

Discussion:
1 comments Page 1 of 1.

Prathap said:   9 years ago
Thread is also super class for this method I think.

Post your comments here:

Your comments will be displayed after verification.