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 a bubble sort in java?

0 Answers  


How to perform selection sort in java?

0 Answers  


Difference between arraylist and vector.

0 Answers  


Is ++ operator thread-safe in java?

0 Answers  


Which sorting algorithm is best in java?

0 Answers  






Explain the advantages of packages in java?

0 Answers  


Can a private method of a superclass be declared within a subclass?

0 Answers  


Explain about the performance aspects of core java?

0 Answers  


explain about casting of objects?

5 Answers  


Can we create an object of private class?

0 Answers  


I have a class which is abstract which contains only the abstract methods. This is similar to an interface. Then, if i have given a choice to choose one of them. Which one i have to choose and why?

4 Answers  


how many types of Inheritance?

0 Answers   Impetus,


Categories