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
Why do we use threads in java?
Does java return by reference?
Implement a stack with push (), pop() and min() in O(1) time.
What is the order of arraylist in java?
How does map works in java?
Is java based on c?
What is generic class?
Can You Have Virtual Functions In Java?
What are the advantages of inner classes?
Is void a wrapper class?
Is null a value?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?
Explain thread life cycle in java?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
How do you join strings in java?