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.

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. Correct Answer I, II and III

In context of Java Threads,

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

yield () voluntarily relinquishes CPU to other threads.

Daemon will terminate when all non-Daemon threads terminate.

Therefore Option I is correct

Related Questions