Ngô Trường Vủ
New member
What is the name of the thread in output in the following Java program?
A. 0
B. 1
C. 4
D. 5
Code:
class multithreaded_programing
{
public static void main(String args[])
{
Thread t = Thread.currentThread();
System.out.println(t.getPriority());
}
}
B. 1
C. 4
D. 5