A
Q. The 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
}
}
- Correct Answer - Option(B)
- Views: 22
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.