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


What are the methods used for inter-thread communication?
and in what class these methods are defined?

Answers were Sorted based on User's Feedback



What are the methods used for inter-thread communication? and in what class these methods are defi..

Answer / ranganathkini

The methods used for inter-thread communication are:

1. wait() - causes thread to wait until another thread calls
the notify() or notifyAll() methods.
2. notify() - wakes up any thread waiting on this object
notifyAll() - wakes up all threads waiting on this object

These methods are a part of the java.lang.Object class.

Is This Answer Correct ?    17 Yes 2 No

What are the methods used for inter-thread communication? and in what class these methods are defi..

Answer / kiran solkar

In Yield an Sleep
which is Not a the method for Inter Thread communication
plzz answerr
or reply me on kiransolkar@gmail.com

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

Is jvm a overhead?

0 Answers  


What is serialization and de-serialization ?

4 Answers  


Difference between swing and awt?

0 Answers  


How many requests can a server fetch at a time?

1 Answers  


What is the purpose of the notifyall() method?

0 Answers  






which of the following authentication is stronger than the others? a. Http Basic b. Http DIGEST c. Form based

1 Answers  


Which Taglibraury you used in your project? plz send me ans....which we r using generally

2 Answers  


what is a portable component?

0 Answers  


whats is mean by object and class?

1 Answers   Saka Solutions,


What state does a thread enter when it terminates its processing?

0 Answers  


How are the elements of a cardlayout organized?

0 Answers  


What is multi-tasking? Types?

1 Answers  






Categories