Why Wait and notify are kept in Object class although they
are used only with Thread Class
Answer Posted / srinivas
Since the locking mechanism happens at the Object level so
they are in Object Class.
| Is This Answer Correct ? | 21 Yes | 4 No |
Post New Answer View All Answers
What do you mean by garbage collection used in java?
Which class is the superclass for all the classes?
How does arraylist size increase in java?
What is boolean law?
What is a jit compiler?
Can a singleton class be inherited?
What is the difference between hashmap and hashtable? What is an interface?
Explain purpose of sleep() method in java?
What is the return type of the main method?
What is a method type?
What is the purpose of default constructor?
What is core java called?
How do you create a reference in java?
Can singleton class be inherited in java?
What does I ++ mean?