Question: c) What is wrong with the below code? Why it is showing compile time error? public class A { } { public A() System.out.println

c) What is wrong with the below code? Why it is showing 

c) What is wrong with the below code? Why it is showing compile time error? public class A { } { public A() System.out.println (1); super(); System.out.println(2);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer The code you provided has a syntax error and a logical issue Lets address them Syntax Error I... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!