Question: which statements are incorrect? Suppose the following class declaration: public class C { private int p; public C(){ System.out.println(invoked1); } public C(int p) { this.p=p;
which statements are incorrect? Suppose the following class declaration: public class C { private int p; public C(){ System.out.println("invoked1"); } public C(int p) { this.p=p; System.out.println("invoked2"); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
