public void yield() method in thread class causes the currently executing thread object - Core Java

Q.  Which method in thread class causes the currently executing thread object to temporarily pause and allow other threads to execute?
- Published on 15 Jul 15

a. public boolean isAlive()
b. public int getId()
c. public void yield()
d. public boolean isDaemon()

ANSWER: public void yield()

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)