What is Yield() method when we r using this ? tell exactly
Answers were Sorted based on User's Feedback
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 |
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 |
When object is created and destroyed?
What is an infinite loop in java? Explain with an example.
What is difference between equals and hashcode method?
What are the difference between composition and inheritance in java?
Explain throw keyword in java?
Explain what pure virtual function is?
This is my code i have a doubt class ab implements a,b { public void add() { System.out.println("Hi") } } interface a { public void add(); } interface b { public void add(); } in this code i have two interface implemented in the class has same method.just i want to know which method of interface implemented in the class. interface a or interface b? confused me .
Why singleton is not thread safe?
Can an unreachable object become reachable again?
What is thread pool? How can we create thread pool in java?
What is not thread safe?
How do you sort a string in alphabetical order in java?