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 is the driver class?
Can we increase array size dynamically in java?
explain copyonwritearraylist and when do we use copyonwritearraylist?
Which is better stringbuilder or stringbuffer?
give an example for encapsulation?
What is bean? Where it can be used?
What are parsing rules?
How can constructor chaining be done using this keyword?
In how many ways we can do exception handling in java?
In how many ways we can do synchronization in java?
Which is fastest collection in java?
What is difference between Heap and Stack Memory?
What are jee technologies?
How many types of interfaces are there?
Is there a jre for java 11?