why the wait,notify,notifyall methods are placed in object
class?these are the thread concepts why these methods are
placed in Object class?
Answer Posted / subhareddy
wait ,notify,notifyall are the methods defined in object
class because we call them on object not on threads.so they
are defined in object class.
Is This Answer Correct ? | 8 Yes | 13 No |
Post New Answer View All Answers
Can a class be protected in java?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
What is java and their uses?
How are variables stored?
What is memory leak and how does java handle it?
What is Gang of four design patterns
What is finally block?
Is singleton thread safe in java?
What are assembly attributes?
What are different exception types exceptions available in java ?
Explain the init method?
Tell me a few examples of final classes defined in Java API?
Explain inheritance in java?
What are generic methods?
How can you set an applet’s height and width as a percentage?