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
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
What is the method to expand and collapse nodes in a jtree?
describe synchronization in respect to multithreading? : Java thread
Why declare Main() inside the class in java ?
What is the difference between synchronized and synchronized block?
Why stringbuilder is not thread safe in java?
What is static method with example?
When does a class need a virtual destructor?
What is difference between static class and normal class?
how to write a server program and sending the mails to the server using smtp protocol please help me
What is a map? What are the implementations of map?
What is difference between call by value and call by reference?
Why main() method is public, static and void in java ?
What is the purpose of stub and skeleton?
What does string mean in java?