Question: 5) List the output of the program below class A public int ni 1 public int n2 2 A(){ n1=2; n2-1; } A(int a, int

 5) List the output of the program below class A public

5) List the output of the program below class A public int ni 1 public int n2 2 A(){ n1=2; n2-1; } A(int a, int b) nl. a n2bi public void printSystem.out.print (ni+ " class B extends A public static int ni- 3: public int n2; public int k = 2; B() { super ( ) ; k=k +1; n1-1; n2.2; int a, int b) super (b, a): k k2 nl - a n2 b public void print ) super.print); System.out.println (nl "n2k) public int fl(int b, int c) int a; a 2; return (c+a); n1 = k + c; public static void main (String t) args) B bl new B) bl.n2 bl.fl (bl.n2, bl.nl); bi.print) B b2 new B (2,3); b2 . n1 = b2.f1 (b2.n2, bl.nl ) ; b2.print)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!