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
What is java and why do we need it? Explain
What is unmodifiable list in java?
What is data type example?
What does flag mean in java?
Can we have a method name same as class name in java?
Can list have duplicates in java?
Which class represents the socket that both the client and server use to communicate with each other?
What is a static class in java?
How do I write a self declaration?
What is field name?
Which collections are thread safe in java?
Explain creating threads by implementing runnable class?
What is size_t?
Explain about arraylist?
What is the difference between a choice and a list?