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 class types in java?
Explain about fail safe iterators in java?
What is the impact of declaring a method as final?
What is java string pool?
Is sizeof a preprocessor?
Can we define private and protected modifiers for the members in interfaces?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
What is an argument in java?
What must a class do to implement an interface in java programming?
Is break statement can be used as labels in java?
What is the exception hierarchy in java?
When do you get classcastexception?
What do you understand by looping in java? Explain the different types of loops.
Difference between string, string builder, and string buffer?
How can I become a good programmer?