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

how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

0 Answers  


Difference Between java & javax

5 Answers   Sun Microsystems, Wipro,


what is disadvantage of thread?

3 Answers   HCL,


Which containers use a border layout as their default layout?

0 Answers  


difference between HashMap, Hashset and hashTable?

2 Answers   HCL, Infotech,


can we write implementation for a method with in another method?

3 Answers   Cap Gemini,


suppose i open my yahoo mail.then copy the url. then sign out & close browser.then open browser paste that url on the browser.will i get my mail opened or not? i know it ill not.but how it work.how i create like this type of secure site?

7 Answers  


What is the use of Class.forName

20 Answers   HCL,


Where we can write Rmi registry in the code, without having to write it at the command prompt?

0 Answers  


difference between  ejb,struts,hibernate,spring and jsp

0 Answers  


What is Connection Pooling?

1 Answers   Enteg Technologies, Infosys, Polaris,


What is multi-tasking? Types?

1 Answers  


Categories