MCQ Single Best Answer Not Set

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

ID: #2295 Java thread MCQ 2,463 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: Option C

Explanation

The program compiles fine.

Share This Question

Challenge a friend or share with your study group.