What will be the output of the following program?
public class OutputOfThread extends Thread {
private OutputOfThread() {
setPriority(NORM_PRIORITY);
setPriority(MAX_PRIORITY);
setPriority(MIN_PRIORITY);
}
public void run() {
System.out.println("Run = " + Thread.currentThread().getPriority() + Thread.currentThread().getPriority());
}
public static void main(String[] args) {
OutputOfThread oft = new OutputOfThread();
System.out.println("Main = " + Thread.MAX_PRIORITY + Thread.MIN_PRIORITY + Thread.NORM_PRIORITY);
oft.start();
}
}