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 Error, defect,fault, failure and mistake?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
What is merge sort in java?
Why is inheritance used in java?
Difference between static and dynamic class loading.
How many characters is 2 bytes?
How can we run a java program without making any object?
Explain the importance of thread scheduler in java?
What are the important features of Java 10 release?
Define inheritance?
How does hashset works in java?
What is hotjava?
What are the four corner stones of oop?
What is a marker interface?
What is re-factoring in software?