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 entry set in java?

536


What is a wrapper method?

535


What is use of arraylist in java?

581


What are the advantages of compiled language?

577


Define how can we find the actual size of an object on the heap?

659






What is style and indentation?

553


Can we convert list to set in java?

511


Is java based on c?

535


Write a code to show a static variable?

618


Why string is not thread safe?

543


What is a stringbuffer?

513


What is thread life cycle in java?

581


What is double data type?

539


What is bifunction in java?

678


what is object slice?

1577