What is the name of the thread in output in the following Java program?
class multithreaded_programing
{
public static void main(String args[])
{
Thread t = Thread.currentThread();
System.out.println(t.getPriority());
}
}
class multithreaded_programing
{
public static void main(String args[])
{
Thread t = Thread.currentThread();
System.out.println(t.getPriority());
}
}
A. 0
B. 1
C. 4
D. 5
Answer: Option D
Join The Discussion