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 / gokul d

The thread which is under sleep state can be resumed back
automatically after the time mentioned.But thread under
wait has to be resumed back only by calling the notify()
method.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can you take care of mutual exclusion using java threads? : Java thread

1105


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

1398


What are loops in java?

1358


What language is pass by reference?

1072


What lambda means?

1068


What is object in java?

1049


Can arraylist contain null values?

1070


What is the significance of continue jump statement? Explain with an example.

1358


Explain how to force the garbage collection in java.

1029


Variables used in a switch statement can be used with which datatypes?

1044


Is zero a positive integer?

1146


What is type inference in java8?

1107


enlist some features of jdk.

1005


What is use of valueof () in java?

1113


Can we override private constructor in java?

1036