Home / MCQ Bank / Computer
Computer Constructors And Methods

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 } }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • At line 2, constructor call

Related Computer Questions

What is the type declared by the header file signal.h? Using OQL, you may do which of the following? What is the port number for NNTP? Consider the following statement containing regular expressions var text = "testing: 1, 2, 3" ; var pattern = / d +/ g; In order to check if the pattern matches, the statement is The updated MySQL extension released with PHP 5 is typically referred to as.