What will be the output of the following program?
public class IsItCorrect {
public static void main(String[] args) throws InterruptedException {
Runnable r = new Runnable() {
public void run() {
try {
Thread.sleep(1);
} catch (InterruptedException e) {
System.out.print("Interrupted,");
}
System.out.print("Run,");
}
};
Thread t = new Thread();
t.run();
System.out.print("Started,");
t.start();
System.out.print("Interrupting,");
t.interrupt();
System.out.print("Ended,");
}
}