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

Give example to differentiate between call by value and call by reference.

776


Define max and min heap, also the search time of heap.

801


Can a class have an interface?

731


Does .length start 0 java?

740


What is thread start?

706


What is a layout manager and what are different types of layout managers available in java awt?

937


How transient variable is different from volatile variable?

754


What is the benefit of abstract class?

695


What is data type modifier?

703


How do you replace all in word?

696


What is string pool in java?

754


What is difference between adapter class and listener?

673


Define inheritance?

763


Difference between abstract and concrete class ?

760


What is the do while loop syntax?

749