// Creating Thread using Thread class class Task extends Thread{ public void run(){ System.out.println("run function is called by start"); System.out.println(this.currentThread()); System.out.println(this.activeCount()); } } class Mythread2{ public static void main(String a[]){ Thread t = new Task(); //Task t = new Task(); line 12 and 13 both are same t.start(); } } /* run function is called by start Thread[#21,Thread-0,5,main] Thread-0 is the thread name 5 is the priority main is the thread group. 2 */