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

Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?

624


What is the method to expand and collapse nodes in a jtree?

615


describe synchronization in respect to multithreading? : Java thread

511


Why declare Main() inside the class in java ?

610


What is the difference between synchronized and synchronized block?

507






Why stringbuilder is not thread safe in java?

578


What is static method with example?

623


When does a class need a virtual destructor?

534


What is difference between static class and normal class?

537


how to write a server program and sending the mails to the server using smtp protocol please help me

1555


What is a map? What are the implementations of map?

574


What is difference between call by value and call by reference?

506


Why main() method is public, static and void in java ?

601


What is the purpose of stub and skeleton?

549


What does string mean in java?

634