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
What does t in java mean?
Why is it called boolean?
How do you identify independent and dependent variables?
Is arraylist sorted in java?
How do you detect memory leaks?
Is null an object in java?
What is an iterator interface in java programming?
What is integer parseint?
What is an accessor?
Why can't you declare a class as protected?
What is the purpose of the finalize() method?
Does java map allow duplicates?
what is method reference in java 8?
what is anonymous class in java?
What do you understand by java?