What is Yield() method when we r using this ? tell exactly

Answer Posted / mounika

It causes to pauses the current executing thread for giving
the chance to the remaining waiting threads of same priority.
if there is no waiting threads are All waiting threads
have low priority then the same thread will continue its
execution.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between post and put?

531


Explain about data types?

568


How do you square a number in java?

545


What is an arraylist in java?

508


Can interface be private in java?

538






Is special character in java?

601


What does math floor () do?

545


What does system.gc() and runtime.gc() methods do?

593


What is a singleton factory?

503


List implementations of list interface?

555


Where to store local variables?

574


Can we overload the methods by making them static?

496


Explain the Propertie sof class?

577


What was java originally called?

501


Explain differences between collection api and stream api?

604