Menu
Question Index
...

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");
    }
}


(EMPTY)
Thread Running
Compilation Error
Runtime Error

Doubts

Problems

Topic: Thread Concept In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App