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 are the different types of inner classes?
Can an abstract class be a final class?
What do you understand by garbage collection in Java? Can it be forced to run?
Can we convert stringbuffer to string?
Is an integer an object?
Why call by value prevents parameter value change?
What is lambda expression in java?
What is the purpose of java?
What is a class component?
Can we overload the methods by making them static?
What is the reason behind using constructors and destructors?
What is difference between iterator and enumeration in java?
What is the meaning of variables in research?
What is the purpose of using javap?
Can memory leak in java?