Why Wait and notify are kept in Object class although they
are used only with Thread Class
Answer Posted / 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 |
Post New Answer View All Answers
How can the checkbox class be used to create a radio button?
What is java lang object?
What is meant by main method?
When do we use synchronized blocks and advantages of using synchronized blocks?
Can we override private method in java?
What are the 7 types of characters?
Is age a discrete variable?
What are untrusted applets?
What is a lightweight component?
How to call one constructor from the other constructor ?
Can you declare a private method as static?
extending thread class or implementing runnable interface. Which is better? : Java thread
Why java is considered as platform independent?
Is java call by reference?
Explain what are final variable in java?