MCQ
Single Best Answer
Not Set
QAnalyze the following code:
public class Test implements Runnable{
public static void main(String[] args){
Test t = new Test();
t.start();
}
public void run() { }
}
ID: #2300
Java thread MCQ
845 views
Question Info
#2300Q ID
Not SetDifficulty
Java thread MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option A
Explanation
The program does not compile because the start() method is not defined in the Test class.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic