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

Variables used in a switch statement can be used with which datatypes?

521


What about interrupt() method of thread class ?

590


What is the formula to calculate percentage?

539


A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

583


Can we declare an interface as final?

578






Can we use switch statement with strings?

624


Which non-unicode letter characters may be used as the first character of an identifier?

601


Why do we need array in java?

536


Is .net better than java?

557


What do you mean by data type?

550


What is JDBC Driver interface?How can you retrieve data from the ResultSet

1515


What is a parameter in java?

550


Explain about varargs in java?

585


How do you compare two strings lexicographically?

544


What are the types of inner classes (non-static nested class) used in java?

572