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