Single Choice
Not Set
QThe following code contains one compilation error, find it?
public class Test {
Test() { } // line 1
static void Test() { this(); } // line 2
public static void main(String[] args) { // line 3
Test(); // line 4
}
}
ID: #2169
Java Constructor and Methods
1,550 views
Question Info
#2169Q ID
Not SetDifficulty
Java Constructor and MethodsTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
At line 2, constructor call
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic