Explain notifyall() method of object class ?



Explain notifyall() method of object class ?..

Answer / Mehraj Khalid

The notifyAll() method notifies all threads that are waiting on an object's monitor (synchronized block or synchronized method). This is useful when you need to wake up multiple threads that are blocked on the same object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is interface and its use?

8 Answers   HCL,


When should a function throw an exception?

1 Answers   Thomson Reuters, Virtusa,


Advantages of Inheritance in java.

11 Answers   CybAge, HCL,


what is run time polymorphism

4 Answers  


Is map sorted in java?

1 Answers  


please send code example of inner classes?

2 Answers  


What is 16 bits called?

1 Answers  


Can we overload the main() method?

1 Answers  


Explain the difference between an Interface and an Abstract class?

1 Answers   BirlaSoft,


What is advantage of using threads?

2 Answers   BMC,


What language is java written?

1 Answers  


what is the Use of throws exception?

2 Answers  


Categories