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

Is java platform independent?

979


Can anonymous class have constructor?

1023


How list contains works in java?

984


If you are given the name of the function at run time how will you invoke the function?

1134


How is final different from finally and finalize?

927


Why are global variables used?

1022


Is this valid in java ? Can we instantiate interface in java?

986


What happens if we override only equals?

973


What are abstract classes and anonymous classes?

1075


What is volatile data type?

1012


How long will it take to learn java?

992


How are the elements of a gridbaglayout organized in java programming?

983


What is a methodologist?

1069


Is java a super set of javascript?

1105


Does string isempty check for null?

1026