What will be the output of the following program?
public class AboutThread extends Thread {
private AboutThread() {
setName("I am Thread");
setPriority(8);
}
public void run() {
System.out.println("Run - " + Thread.currentThread().getName());
System.out.println("Run - " + Thread.currentThread().getPriority());
}
public static void main(String[] args) {
System.out.println("Main - " + Thread.currentThread().getPriority());
System.out.println("Main - " + Thread.currentThread().getName());
new AboutThread().start();
}
}