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

Can a class be protected in java?

496


can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

530


What is java and their uses?

544


How are variables stored?

527


What is memory leak and how does java handle it?

515






What is Gang of four design patterns

588


What is finally block?

564


Is singleton thread safe in java?

545


What are assembly attributes?

539


What are different exception types exceptions available in java ?

473


Explain the init method?

539


Tell me a few examples of final classes defined in Java API?

557


Explain inheritance in java?

549


What are generic methods?

525


How can you set an applet’s height and width as a percentage?

510