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


Please Help Members By Posting Answers For Below Questions

how to deploy tomcatserver to weblogic server? write d following steps?

1445


What is a hashmap used for?

640


Is integer a class?

563


What is meant by nested loop?

536


Can a static method be final?

548






What is use of map in java?

510


Can we access the non-final local variable, inside the local inner class?

513


What's the base class of all exception classes?

562


Does java list allow null?

536


What java ide should I use?

564


what is the significance of listiterator in java?

616


Which class is the superclass for every class in java programming?

569


Which class represents the socket that both the client and server use to communicate with each other?

565


What are the loops in java?

520


What is a pointer and does java support pointers?

555