Why Wait and notify are kept in Object class although they
are used only with Thread Class
Answers were Sorted based on User's Feedback
Answer / srinivas
Since the locking mechanism happens at the Object level so
they are in Object Class.
| Is This Answer Correct ? | 21 Yes | 4 No |
Answer / chandrasekhar
wait(),notify() are worked on the objects to control the
multiple thereads,not on theread.Hence these methods are
difined object class.
| Is This Answer Correct ? | 14 Yes | 8 No |
What is meant by Session? Explain something about HTTP Session Class?
Is list ordered in java?
What is the Concept of Encapsulation in OOPS
hi to all. well can you please tell me that why String class is immutable? Thanks in advance.
How do you declare an array that will hold more than 64KB of data?
What does t in java mean?
how can i connect to database in a applet ?
How can you avoid serialization in child class if the base class is implementing the serializable interface?
What are drawbacks of singleton class?
Explain illegalmonitorstateexception and when it will be thrown?
What are the observer and observable classes?
What is nullpointerexception in java?