Home » JAVA Programming » Multithreading » Question
  1. What is the output of this program?
    public class multithreading_SimpleExample
    {
    public static void main(String args[])
    {
    Thread thread = Thread.currentThread();
    System.out.println(thread);
    }
    }
    1. Thread
    2. Main
    3. 5
    4. Thread[main,5,main]
    5. None of these
Correct Option: D

Thread[main,5,main]



Your comments will be displayed only after manual approval.