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
Difference between method overloading and overriding.
Does substring create a new object?
Is java free for businesses?
What is java dot?
What are advantages of using Java?s layout managers than windowing systems?
What is difference between variable declaration and definition?
What is java literals?
How can we make a class virtual?
How to perform linear search in java?
Which non-unicode letter characters may be used as the first character of an identifier?
What is the basic difference between string and stringbuffer object?
How do you sort in ascending order in java?
Is class is a data type?
Why is method overloading not possible by changing the return type in java?
Write a code to create a trigger to call a stored procedure