why the wait,notify,notifyall methods are placed in object
class?these are the thread concepts why these methods are
placed in Object class?

Answers were Sorted based on User's Feedback



why the wait,notify,notifyall methods are placed in object class?these are the thread concepts why ..

Answer / 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

why the wait,notify,notifyall methods are placed in object class?these are the thread concepts why ..

Answer / subhareddy

wait ,notify,notifyall are the methods defined in object
class because we call them on object not on threads.so they
are defined in object class.

Is This Answer Correct ?    8 Yes 13 No

Post New Answer

More Core Java Interview Questions

What is a ternary operator in java?

0 Answers  


What is 3-tier model?

3 Answers   Wipro,


What is a dot notation?

0 Answers  


Can we convert integer to string in java?

0 Answers  


What is object in java?

0 Answers  






Name four container classes.

0 Answers  


What are the advantages of java inner classes?

0 Answers  


If a class is declared without any access modifiers, where may the class be accessed in java programming?

0 Answers  


Name the package that always imported by default?

4 Answers  


What is r * in math?

0 Answers  


What is the difference between yielding and sleeping in java programming?

0 Answers  


Is java supports multiple inheritance? explain?

12 Answers   BUET, Inforica,


Categories