Question: what will be the output? class A { public A(int i) { } int myMethod (int i) { } System.out.println (myMethod (i)); } return
what will be the output? class A { public A(int i) { } int myMethod (int i) { } System.out.println (myMethod (i)); } return ++i+ --i; } class 8 extends A { public B(int i, int j) { super(i*j); System.out.println (myMethod(i, j)); } int myMethod (int i, int j) { return myMethod (i*j); } public public class MainClass. public static void main(String[] args) { B b = new B(12, 21); }
Step by Step Solution
3.46 Rating (162 Votes )
There are 3 Steps involved in it
Java code snippet that replicates the provided classes an... View full answer
Get step-by-step solutions from verified subject matter experts
