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 simpletimezone class in java programming?

538


When the constructor of a class is invoked?

595


What is the difference between actual and formal parameters?

517


Which data type is a class in java?

573


Explain when noclassdeffounderror will be raised ?

618






What is the difference between int and integer in java?

516


What is basic syntax?

551


What does the “final” keyword mean in front of a variable? A method? A class?

546


What is the maximum size of hashmap in java?

537


What is native code?

538


What is array size in java?

500


Why is the type for real numbers called double?

545


What is object of class in java?

598


Is it possible to compare various strings with the help of == operator?

548


What is the purpose of using bufferedinputstream and bufferedoutputstream classes?

553