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 are the different types of inheritance in java?
What is runtime polymorphism or dynamic method dispatch?
What is immutability in java?
What is stream api in java8?
What are static initalizers in java ?
What is better- service oriented or batch oriented solutions?
What are the differences between this and super keyword?
What is the maximum size of a string in java?
Give us a program to check for parenthesis matching using stack.
What is google full form?
What are the differences between heap and stack memory?
Difference between comparator and comparable in java?
What is the difference between public, private, protected, and friend access?
What is variable length arguments in java?
What is the difference between stream and buffer?