1.

In context of Java Threads, which of the following statements are true?I: sleep () and yield () are static methods in thread classII: yield () voluntarily relinquishes CPU to other threads.III: Daemon will terminate when all non-Daemon threads terminate.

A. I, II and III
B. I and II only
C. II and III only
D. I and III only
Answer» B. I and II only


Discussion

No Comment Found