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


Please Help Members By Posting Answers For Below Questions

What is classes in java?

523


What restrictions are placed on method overriding in java programming?

547


What is default switch case? Give example.

578


Explain a situation where finally block will not be executed?

578


Explain implementation and how is it different from conversion?

595






What state is a thread in when it is executing?

535


Is java based on c?

541


How many types of assembly languages are there?

531


Can the interface be final?

584


What is polymorphism in java? What are the kinds of polymorphism?

584


Is space a character in java?

522


What is a class reference?

557


What language is java written?

542


Can we declare a constructor as final?

681


Can we overload the methods by making them static?

507