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

What is a JAR file?

588


Explain spliterator in java8?

595


Can we make constructors static?

718


Why java applets are more useful for intranets as compared to internet?

575


How do you call a reference in java?

515






How are variables stored?

527


Explain the purpose of garbage collection in Java?

566


How do you check whether the list is empty or not in java?

507


Who is founder of java?

524


What are unchecked exceptions in java?

608


Is space a string in java?

508


How does arrays sort work in java?

595


Wha is the output from system.out.println(“hello”+null); ?

683


Why is multithreading important?

488


Explain the difference between an Interface and an Abstract class?

621