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 is object data type?

0 Answers  


What is the use join() in Threads ?

5 Answers   HCL,


How can we pass argument to a function by reference instead of pass by value?

0 Answers  


Briefly explain the term Spring Framework

1 Answers  


Is java a virus?

0 Answers  






What is command line argument in java?

0 Answers  


What is scanner in java?

0 Answers  


What is return data type?

0 Answers  


What is a Java switch statement, and how can it be used?

2 Answers  


What is the size of arraylist in java?

0 Answers  


What is the purpose of encapsulation?

0 Answers  


What is executor memory?

0 Answers  


Categories