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 you call a method on a null object?
What is a boolean used for?
What is the use of static class?
Explain the difference between call by refrence and call by value?
What is the difference between C++ and Java and your preferences?
What is this keyword used for?
What is the byte range?
What is the purpose of a default constructor?
How can an exception be thrown manually by a programmer?
Can an interface be final?
What are the restriction imposed on a static method or a static block of code?
How do you download stubs from Remote place?
What is string data?
How do you start a thread?
What is the purpose of declaring a variable as final?