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 do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread

916


What is empty list in java?

1062


what is the use of bean managed and container managed with example?

1957


Can Exception handling we can handle multiple catch blocks?

1026


How do generics work?

928


What is the return type of the main method?

1016


Can we declare the static variables and methods in an abstract class?

976


What is the benefit of using enum to declare a constant?

1084


What is parse method?

993


If try block is successfully executed, Then Is Finally block executed?

1073


Is object a data type in java?

1100


How hashset works internally in java?

1065


How do you declare an array that will hold more than 64KB of data?

1263


What is the method to declare member of a class static?

996


Which method cannot be overridden in java?

977