why the wait,notify,notifyall methods are placed in object
class?these are the thread concepts why these methods are
placed in Object class?
Answer Posted / subhareddy
wait ,notify,notifyall are the methods defined in object
class because we call them on object not on threads.so they
are defined in object class.
Is This Answer Correct ? | 8 Yes | 13 No |
Post New Answer View All Answers
What is classes in java?
What restrictions are placed on method overriding in java programming?
What is default switch case? Give example.
Explain a situation where finally block will not be executed?
Explain implementation and how is it different from conversion?
What state is a thread in when it is executing?
Is java based on c?
How many types of assembly languages are there?
Can the interface be final?
What is polymorphism in java? What are the kinds of polymorphism?
Is space a character in java?
What is a class reference?
What language is java written?
Can we declare a constructor as final?
Can we overload the methods by making them static?