why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
Answer / Amit Tripathi
The wait(), notify(), and notifyAll() methods are defined in the Object class because they provide a general mechanism for one thread to signal other threads waiting on an object. These methods allow for synchronization between multiple threads accessing shared objects.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain where variables are created in memory?
What is a jagged array in java?
Is it possible to write method inside method
What is remote method invocation (rmi)?
What is the need of transient variables in Java ?
Can we use both this () and super () in a constructor?
What are thread safe functions?
what is webservices
5 Answers Consultancy, Mind Tree,
What are the major drawbacks of external iteration?
what are Hostile Applets?
What do you mean by order of precedence and associativity?
What is bubble sort in java?