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 the difference between the final method and abstract method?

0 Answers  


Explain about main thread in java?

0 Answers  


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

0 Answers   Amazon,


What do you understand by abstract classes?

0 Answers   HCL,


Explain methods specific to list interface?

0 Answers  






write java code to print second max number in the array

12 Answers   Huawei, IBAB,


Give me an example of array and linked list? Where they can be used?

0 Answers   Ericsson,


Is .net better than java?

0 Answers  


whats is the use of final,in which situation final can be used in the application?

2 Answers   DNS,


What is the instance of an object?

0 Answers  


What is the benefit of using enum to declare a constant?

0 Answers   Aspire, Infogain,


Explain the private protected method modifier?

0 Answers  


Categories