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 many types of parsers are there?

959


What are parsing rules?

935


Can we call the constructor of a class more than once for an object?

1041


Is main an identifier?

945


What is native method in java?

1013


what is the difference between future and callable interface in java?

1145


What is OOP's Terms with explanation?

1121


What is the default value of an object reference declared as an instance variable?

1037


How do you declare an empty string?

1007


Explain the meaning of java applet.

1016


What is abstract class constructor called?

952


Which one of the following suits the description of a string better: derived or primitive?

903


Are strings immutable in java?

919


What are the 7 types of characters?

1018


What is java beans?

937