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
Why is stringbuffer called mutable?
Is null a keyword in java?
How to overcome the exception object reference not set to an instance of object?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
What is identifier give example?
What is the meaning of I ++ in java?
What is the difference between interface & abstract class?
What is multiple inheritance? Is it supported by java?
Can we declare a constructor as final?
Why stringbuilder is not thread safe?
What are pass by reference and pass by value?
Why null value is used in string?
Can a hashset contain duplicates java?
Explain importance of throws keyword in java?
What is pass by value?