What will be the output of the following program?
public class Worker extends Thread {
Worker() {
setName("Ashok");
setPriority(Thread.MAX_PRIORITY);
}
public void start() {
System.out.println("Name = " + Thread.currentThread().getName());
System.out.println("Priority = " + Thread.currentThread().getPriority());
}
public static void main(String[] args) {
Worker w = new Worker();
w.start();
Worker w1 = new Worker();
w1.run();
}
}