Single Choice
Not Set
QAnalyze the following code:
public class Test implements Runnable{
public static void main(String[] args){
Test t = new Test();
}
public Test(){
Thread t = new Thread(this);
t.start();
}
public void run(){
System.out.println("test");
}
}
ID: #2299
Java thread MCQ
1,115 views
Question Info
#2299Q 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 compiles and runs and displays test.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic