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


Please Help Members By Posting Answers For Below Questions

What is the difference between Error, defect,fault, failure and mistake?

666


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).

1535


What is merge sort in java?

589


Why is inheritance used in java?

616


Difference between static and dynamic class loading.

595






How many characters is 2 bytes?

536


How can we run a java program without making any object?

549


Explain the importance of thread scheduler in java?

604


What are the important features of Java 10 release?

517


Define inheritance?

563


How does hashset works in java?

541


What is hotjava?

563


What are the four corner stones of oop?

553


What is a marker interface?

580


What is re-factoring in software?

583