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...

what is the difference between sleep() and Wait()?

Answer Posted / deepak divvela

The main difference is if we need the thread wants to block
particular period of time we just choose sleep().
and when the thread called wait() means it will blocked
untill we will call notify(),notifyAll();

Is This Answer Correct ?    49 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you end a program?

1188


What is lastindexof in java?

1178


what is difference between equals and ==?

1126


What is the output of the below java program?

1101


What is the syntax and characteristics of a lambda expression? Explain

1095


What are the advantages of java inner classes?

1115


Why we used break and continue statement in java?

1223


What is the difference between delete and delete[]

1654


Explain when classnotfoundexception will be raised ?

1087


When will we prefer to use set and list in java and why?

1023


What are 3 boolean operators?

1054


Is java a pure object oriented language?

1013


What is difference between core java and java ee?

950


What is void keyword?

1162


What does string mean in java?

1155