Single Choice
Not Set
QWhat is the output for the below code?
public class Test extends Thread{
public static void main(String argv[]){
Test t = new Test();
t.run();
}
public void start(){
for(int i = 0; i < 10; i++){
System.out.println("Value of i = " + i);
}
}
}
ID: #2310
Java thread MCQ
849 views
Question Info
#2310Q 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
Clean compile but no output at runtime
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic