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 java and why do we need it? Explain

793


What is unmodifiable list in java?

718


What is data type example?

744


What does flag mean in java?

731


Can we have a method name same as class name in java?

800


Can list have duplicates in java?

699


Which class represents the socket that both the client and server use to communicate with each other?

790


What is a static class in java?

729


How do I write a self declaration?

747


What is field name?

770


Which collections are thread safe in java?

683


Explain creating threads by implementing runnable class?

803


What is size_t?

703


Explain about arraylist?

765


What is the difference between a choice and a list?

813