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

Answers were Sorted based on User's Feedback



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

Answer / naresh kumar

Yield will be called by Thread.Yield() t0 give other
runnable thread a chance to excute...

Is This Answer Correct ?    10 Yes 0 No

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

Answer / 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

More Core Java Interview Questions

What is difference between Eclips and MyEclips?

3 Answers  


what is thread? What are the high-level thread states? : Java thread

0 Answers  


What is the need of transient variables in Java ?

0 Answers   MCN Solutions,


Explain aggregation in java?

0 Answers  


Explain naming conventions for packages?

0 Answers  






difference between jsp and java script?

3 Answers  


A class can be a subclass of itself?

2 Answers   Genesis,


Can we create a constructor in abstract class?

0 Answers  


use of wrapper classes?

3 Answers   IBM,


write a class to input 2 points by the user & check the line maked by the points is horizontal,vertical or rectangle?

1 Answers  


What is the ResourceBundle?

2 Answers   Elementus Technologies,


How do you remove an object from an arraylist in java?

0 Answers  


Categories