-
What is the output of this program?
public class multithreading_Example
{
public static void main(String args[])
{
Thread thread = Thread.currentThread();
thread.setName("Thread one");
System.out.println(thread);
}
}
-
- Thread
- Thread one
- main
- Thread[Thread one,5,main]
- None of these
Correct Option: D
Thread[Thread one,5,main]