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 the difference between multiple processes and multiple threads?
Are arrays dynamic in java?
What is formatted output in java?
what r callable statement and give their proper use
What is the difference between array and array list in java?
write a program to create an arraylist and listeterator.and value should be enter through keyboard.
What is codebase?
What is java english?
What are the different types of inheritance in java?
Can one thread block the other thread?
List the features of java programming language.
What are variable names?