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 / vinayakkatkar
wait notify method can be use din some applications where we
have producer consumer mechanism
so they need not be the methods of thread class
and they must be available to the all classes not extending
the thread class
hence the reason
Hi, I have created a blog named as knowledge is free
where you can download many useful e-books on java ,linux,
php , c ,c++
and also request books to me.
I will make it available to all of you. Please tell your
friends to visit the blog
This is the link to blog
http://vinayakkatkar.blog.co.in
--
vinayak
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
What is variable and its types?
What is the purpose of default constructor?
Difference between object instantiation and construction ?
What is this keyword in java?
If goto and const is reserve words than why it is not work in java?
What is the difference between public, private, protected, and friend access?
Is arraylist ordered in java?
Can we convert integer to string in java?
Is java a super set of javascript?
What does the three dot emoji mean?
What do you mean by garbage collection used in java?
Why hashmap is used in java?
What is the need of transient variables in Java ?
What is illegal identifier in java?
What is an object class?