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

diff b/w sleep(1000) and wait(1000)?

Answer Posted / amod

the sleep() method is to make a thread to stop 4m working
for a fixed time sleep(5000)
it will make the thread to sleep for 5min
lly wait method ie wait()makes the thread to stop 4m
workin when other thread needs to excuteee

Amod s Dhupkar

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you give names of Container classes?

2319


What is canonical name in java?

1168


What is string intern in java?

1039


Why multiple inheritance is not supported by java?

993


What is meant by method overriding?

1124


What is * argv?

1251


How to do a true java ping from windows?

1172


Is array dynamic in java?

942


What is the base class of all classes?

1067


Can we override the private methods?

1022


What is arrays fill in java?

1030


What are the differences between wait() and sleep()?

1029


What is a condition in programming?

1022


What is the parse method in java?

1133


What is the difference between reader/writer and inputstream/output stream?

1093