Why Wait and notify are kept in Object class although they
are used only with Thread Class
Answer Posted / chandrasekhar
wait(),notify() are worked on the objects to control the
multiple thereads,not on theread.Hence these methods are
difined object class.
Is This Answer Correct ? | 14 Yes | 8 No |
Post New Answer View All Answers
Who is the owner of java?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
Why javac is not recognized?
Can you use this() and super() both in a constructor?
Why should I use abstract class?
Can an integer be a string?
What do you understand by a Static Variable?
What is boolean law?
What is argument in java?
What are the characteristics of java?
How can a gui component handle its own events in java programming?
What is the meaning of nullable?
What is queue in java?
How can you add and remove nodes in jtree?
Is java still relevant?