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

What does sprintf mean?

877


what do you mean by classloader in java?

974


Can we use string in the switch case?

984


I want to print “hello” even before main is executed. How will you acheive that?

1047


What do you mean by constant time complexity?

1136


Can we override the private methods?

939


Why inputstreamreader is used in java?

958


Does variable declaration allocate memory?

983


Can we override singleton class?

927


Why hashset is used in java?

1000


What is java reflection?

920


How java is similar to c?

997


Name few "optional" classes introduced with java 8 ?

1067


Can you extend main method in java?

1094


Give any two differences between C++ and java.

1081