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

A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

524


What are thread priorities and importance of thread priorities in java?

603


What are the types of web technologies?

500


what are abstract functions?

539


How to perform binary search in java?

550






What is use of inner class in java?

493


Why string is not thread safe?

513


How would you format a date in java? I.e. In the ddmmyyy format?

739


What advantage do java's layout managers provide over traditional windowing systems?

521


make a method which any number and any type of argument and print sum of that arguments.....

1358


What is singleton class in ruby?

537


Is boolean a data type in java?

498


Why are constructors used?

538


what is aggregation in java?

566


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

520