Single Choice
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
862 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
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