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 / vinay kumar

sleep() will wait go to sleep for amount of time that is specified in it.After the times finishes it resumes automatically.

wait() will also wait for some I/O and will NOT resume automatically but will resume only when notify() or notifyall() is called.

Is This Answer Correct ?    19 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you sort arraylist in descending order?

1018


What are the types of relation?

1043


When should I use a singleton?

1044


What are the benefits of java?

1132


What are the two categories of data types in the java programming language?

985


What is json parser in java?

1058


What is the purpose of a volatile variable?

1045


When will we use them?

1047


How big is a gigabyte?

1044


Where is singleton pattern used?

993


What are the features of junit?

1041


What is the best way to findout the time/memory consuming process?

1028


What is the difference between abstract class and interface1? What is an interface?

1068


What are register variables what are the advantages?

899


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

972