Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are latest features introduced with java 8?

1151


Is empty in java?

1111


Can a constructor be made final?

1160


What is the difference between jvm and jre? What is an interface?

1150


What is the dot operator?

1064


What is hash in java?

1039


Which collections are thread safe in java?

959


Can we declare register variable as global?

965


What are the benefits of immutable objects?

1055


how to open and edit XML file in Weblogic???

2012


What is difference between variable declaration and definition?

1012


What is structure of java heap? What is perm gen space in heap?

1184


Write a program to reverse array in place?

1115


Do we have pointers in java?

1070


What is java and why do we need it? Explain

1200