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

Answer Posted / shrinu nallavelli

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

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use a switch statement with strings?

545


I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?

688


What is udp in java?

529


What is a byte string?

613


What are the basic interfaces of java collections framework?

595






What is a final class ?

598


What is included in core java?

575


What is append function?

562


Differentiate between stringbuffer and stringbuilder in java.

548


Is .net better than java?

551


How can we create a synchronized collection from given collection?

575


What is a flag variable?

557


What is a constructor, constructor overloading in java?

522


Which one of the following suits the description of a string better: derived or primitive?

506


What is difference between throw and throws ?

592