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


Please Help Members By Posting Answers For Below Questions

Who is the owner of java?

541


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

600


Why javac is not recognized?

526


Can you use this() and super() both in a constructor?

522


Why should I use abstract class?

570






Can an integer be a string?

513


What do you understand by a Static Variable?

632


What is boolean law?

520


What is argument in java?

540


What are the characteristics of java?

525


How can a gui component handle its own events in java programming?

536


What is the meaning of nullable?

576


What is queue in java?

554


How can you add and remove nodes in jtree?

614


Is java still relevant?

500