What is the result? Given: What is the result? Given: What is the result? A. 10:20 B. 0:20 C. Compilation fails at line n1 D. Compilation fails at line n2 Show Hint ← Previous question Next question →
Tomas Answer: D output: Exception in thread “main” java.lang.RuntimeException: Uncompilable source code – call to this must be first statement in constructor Reply
D
Definitey D.
“this” must be first statement in constructor’s body.
Answer: D
output:
Exception in thread “main” java.lang.RuntimeException: Uncompilable source code – call to this must be first statement in constructor
d