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

(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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Advanced Java Programming Questions!