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 null?
Difference between default and protected access specifiers?
How garbage collection is done in java?
Why we use methods in java?
What are the types of java languages?
What type of variable is error flag?
What is the use of optional ?
What is null data type?
How is java created?
What is the default value of the local variables?
What do you mean by of string::valueof expression in java 8?
What is the use of toarray () in java?
hr interview how many minutes asking question
Can I use % with real numbers?
Can we declare a static variable inside a method?