How can two threads be made to communicate with each other?

Answers were Sorted based on User's Feedback



How can two threads be made to communicate with each other?..

Answer / @dania@

Two threads can communicate with each other using
the wait() and notify() , notifyAl() methods. wait()
method tells the thread to wait until another threads
calls notify() method

Is This Answer Correct ?    18 Yes 0 No

How can two threads be made to communicate with each other?..

Answer / shrinu nallavelli

by using Thread class methods wait() notify() and
notifyAll()...

Is This Answer Correct ?    2 Yes 1 No

How can two threads be made to communicate with each other?..

Answer / sanbjs

thread is quick coomunication get easy independent get process

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Core Java Interview Questions

What happens when a class is made static like if a field or member is made static it becomes class variable and is shared by all the object of the class?

1 Answers  


Explain yield() method in thread class ?

0 Answers  


What is stored procedure. How do you create stored procedure ?

0 Answers   GE,


what is the Use of throws exception?

2 Answers  


Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls

0 Answers  






Can java run on google chrome?

0 Answers  


What is application system?

0 Answers  


What 4 doubled?

0 Answers  


What are the object and class classes used for?

0 Answers  


What is final modifier?

0 Answers  


Can a serialized object be transferred via network?

0 Answers  


How two different class threads communicate with each other?. send example code.

4 Answers  


Categories