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 use of arraylist in java?
What are the different types of java?
Is void a keyword in java?
What class of exceptions are generated by the java run-time system?
Explain the meaning of java applet.
What is a vararg?
What is operator overloading. Is it is supported in java?
what is encapsulation in java? Explain
What is the mapping mechanism used by java to identify IDL language?
What is the significance of listiterator?
Explain static nested classes ?
What is binary tree in java?
What is flush () in java?
What is string literal in java?
What are the advantages of encapsulation in java?