Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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



Why Wait and notify are kept in Object class although they are used only with Thread Class..

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

Why Wait and notify are kept in Object class although they are used only with Thread Class..

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

Post New Answer

More Core Java Interview Questions

What is the difference between multiple processes and multiple threads?

0 Answers  


Are arrays dynamic in java?

0 Answers  


What is formatted output in java?

0 Answers  


what r callable statement and give their proper use

2 Answers  


What is the difference between array and array list in java?

0 Answers  






write a program to create an arraylist and listeterator.and value should be enter through keyboard.

1 Answers   Axcend,


What is codebase?

0 Answers  


What is java english?

0 Answers  


What are the different types of inheritance in java?

0 Answers  


Can one thread block the other thread?

0 Answers  


List the features of java programming language.

0 Answers  


What are variable names?

0 Answers  






Categories