ThreadDemo2910 - Java Quiz Question


What will be the output of the following program?

public class ThreadQuestion {
    public static void main(String[] args) {
        Thread t = new Thread();
        t.run();
    }
}
class Example implements Runnable {
    public void run() {
        System.out.println("Thread Running");
    }
}


A
(EMPTY)
B
Thread Running
C
Compilation Error
D
Runtime Error