MCQ Practice Single Best Answer Topic: Java thread MCQ

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

Question ID
#2295
Subchapter
Java thread MCQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is 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: C

Explanation

The program compiles fine.

Share This Question

Share this MCQ with your friends or study group.