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

What is yielding and sleeping? how they different?

Answer Posted / ravikiran

yield() method will suspend all the same priority thread
which is running and gives chance to next thread to run
which is of the same priority
sleep() method will make the thread to sleep for a
particular period of time which is specified in the
argument list

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is main string [] args?

946


What is java util hashmap?

944


What is character in data type?

922


Can we declare a static variable inside a method?

956


What is pangram in java?

967


What is this keyword used for?

1070


What is outofmemoryerror in java?

971


State one difference between a template class and class template.

1025


What is void class in java?

919


Is java se free?

887


Explain the difference between intermediate and terminal operations in java8?

1048


What is floor in java?

991


What is the difference between static class and normal class?

988


Where are the card layouts used?

1029


What differences exist between iterator and listiterator?

995