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

Is break statement can be used as labels in java?

0 Answers  


Write a program in java to find the maximum and minimum value node from a circular linked list.

0 Answers  


What is the function of log?

0 Answers  


What is the purpose of lambda expressions?

0 Answers  


What are the types of methods in java?

0 Answers  






Can private method static?

0 Answers  


What is meant by method?

0 Answers  


what is the JNDI?

3 Answers  


Why do we need wrapper classes?

0 Answers  


Which class is the superclass for all the classes?

0 Answers  


Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

0 Answers   V2 Solutions,


Tell me a few examples of final classes defined in Java API?

0 Answers   DELL,


Categories