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 difference between synchronized and synchronized block?
Why is a string immutable?
Is null a string or object in java?
What is final keyword in java? Give an example.
What is meant by memory leak?
What is getclass () getname () in java?
Explain what is encapsulation?
What are thread safe functions?
Which number is denoted by leading 0x or 0x in java?
Is string an object?
What is the output of the below java program?
How to change value in arraylist java?
What do you mean by stack?
What is string pool in java?
What is member in java?