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 are latest features introduced with java 8?
Is empty in java?
Can a constructor be made final?
What is the difference between jvm and jre? What is an interface?
What is the dot operator?
What is hash in java?
Which collections are thread safe in java?
Can we declare register variable as global?
What are the benefits of immutable objects?
how to open and edit XML file in Weblogic???
What is difference between variable declaration and definition?
What is structure of java heap? What is perm gen space in heap?
Write a program to reverse array in place?
Do we have pointers in java?
What is java and why do we need it? Explain