Which of the following is true?1) wait(),notify(),notifyall() are defined as final & can be called only from with in a synchronized method2) Among wait(),notify(),notifyall() the wait() method only throws IOException3) wait(),notify(),notifyall() & sleep() are methods of object class

A) 1
B) 2 & 3
C) 1 & 2
D) 1 2 & 3

Showing Answers 1 - 1 of 1 Answers

pdurbha

  • Apr 20th, 2006
 

As far as I know wait() notify() and notifyAll() belong to the Object class and need to be called from a synchronized class. They can't be declared final since in that case they cannot be overridden in any classes. sleep() belongs to the class Thread.

 My answer : none of the above which is not listed

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions