1.

What is the priority of the thread in output of this program?public class multithreaded_PriorityExample { public static void main(String args[]) { Thread thread = Thread.currentThread(); thread.setName("Thread One"); System.out.println(thread.getPriority()); } }

A. 2
B. 1
C. 0
D. 5
E. 10
Answer» E. 10


Discussion

No Comment Found

Related MCQs