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

Define the remote object implementation?

0 Answers  


Can you give me a simple example of using the requiredif validator rule?

0 Answers  


What are the benefits of detached objects?

0 Answers  


what is handle?

0 Answers  


What is message driven beam?

0 Answers  


difference between apllet and interface class

1 Answers   Infotech,


iam writing the contents to a excel through I/O i am putting first statement as WRITE and then READ(from excel) immediately..later user complains that he is not getting the date by using READ ..wat could be the situation

3 Answers   iGate,


Difference between loadclass and class.forname?

0 Answers  


what is a Daemon Thread?

2 Answers  


what is difference between checked exception & unchecked exception in java?

3 Answers   Ness Technologies,


what are getters and setters in Java with examples?

0 Answers   HCL, Infotech,


how i secure my site with the https protocol.what are the steps?

0 Answers  


Categories