Programming Language › Java thread MCQ › Question #2295
Single Choice Not Set

QAnalyze the following code:
public abstract class Test implements Runnable{
        public void doSomething() { };
}

ID: #2295 Java thread MCQ 2,486 views
Question Info
#2295Q ID
Not SetDifficulty
Java thread MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A The program will not compile because it does not implement the run() method. ✔ ✖
  • B The program will not compile because it does not contain abstract methods. ✔ ✖
  • C The program compiles fine. ✔ ✖
  • D None of the above ✔ ✖
Correct Answer

Explanation

The program compiles fine.

Share This Question

Challenge a friend or share with your study group.