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

Is math class static in java?

1159


What are access specifiers in java ?

1206


What is the difference between math floor and math round?

1115


What are the major advantages of internal iteration over external iteration?

1113


Does every java program need a main?

1042


Difference between static binding and dynamic binding?

1190


How can you write a loop indefinitely in java programming?

1075


What is a singleton class in Java?

1151


What is the purpose of return statement?

1129


What is meant by design patterns?

1099


What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

1178


What is size () in java?

1152


Why we go for collections in java?

1029


Can you pass by reference in java?

1037


Can static method access instance variables ?

1192