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 |
Can we declare an interface as final?
What is method and methodology?
When should a function throw an exception?
0 Answers Thomson Reuters, Virtusa,
What is oop principle in java?
What is meant by javabeans?
Can you sort a list in java?
What is the basic difference between string and stringbuffer object?
What are the basic control structures?
What is a function easy definition?
What are init(), start() methods and whey they are called?
What is jee6?
what is the main class of all the classes