How can two threads be made to communicate with each other?
Answer Posted / @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 |
Post New Answer View All Answers
What’s the difference between applets and standalone program?
What is final int?
Can set contain duplicates?
What is the difference between the paint() and repaint() methods in java programming?
Is arraylist an object in java?
Can you write a java class that could be used both as an applet as well as an application?
According to java operator precedence, which operator is considered to be with highest precedence?
What is an example of a constant variable?
What are constants and how to create constants in java?
How is string stored in java?
Explain java coding standards for classes or java coding conventions for classes?
what is recursion in java
Garbage collection in java?
What are the legal operands of the instanceof operator?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?