Question: What is the output of this program? (a) Thread[main,5,main] (b) Thread[5,main] (c) Thread[main,0] (d) Thread[main,5] class Test { public static void main(String args[]) { Thread
What is the output of this program?
![class Test { public static void main(String args[]) { Thread t = Thread.currentThread (); System.out.println](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1704/7/8/5/516659cf66ca4aeb1704785515348.jpg)
(a) Thread[main,5,main]
(b) Thread[5,main]
(c) Thread[main,0]
(d) Thread[main,5]
class Test { public static void main(String args[]) { Thread t = Thread.currentThread (); System.out.println (t); poky
Step by Step Solution
3.38 Rating (157 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
