In context of Java Threads, which of the following statements are true?

I: sleep () and yield () are static methods in thread class

II: yield () voluntarily relinquishes CPU to other threads.

III: Daemon will terminate when all non-Daemon threads terminate.

1
I, II and III
2
I and II only
3
II and III only
4
I and III only

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation