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 is the simpletimezone class in java programming?
When the constructor of a class is invoked?
What is the difference between actual and formal parameters?
Which data type is a class in java?
Explain when noclassdeffounderror will be raised ?
What is the difference between int and integer in java?
What is basic syntax?
What does the “final” keyword mean in front of a variable? A method? A class?
What is the maximum size of hashmap in java?
What is native code?
What is array size in java?
Why is the type for real numbers called double?
What is object of class in java?
Is it possible to compare various strings with the help of == operator?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?