Question: in java.. which one QUESTION 8 Analyze the following code: public dass Test f public static void mainfStringl args) l new B); class A inti-

in java..

which one

in java.. which one QUESTION 8 Analyze the following code: public dass

QUESTION 8 Analyze the following code: public dass Test f public static void mainfStringl args) l new B); class A inti- 7, public A0 System.out printlnf"i from A is" +i) public void setl(inti) thisi 2*i; class B extends A t public B0 setI(20) l System.outprintlnf"ifrom B is"+i) public void setl(inti) t thisi - 3*i; The constructor of class A is not called O The constructor of class A is called and it displays "i from A is 7" O The constructor of class A is called and it displays "ifrom A is 60" The constructor of class A is called and it displays "i from A is 40

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!