Question: 5. What is the output of the second println statement in the main method? public class Foo int i static int i public static void

5. What is the output of the second println statement in the main method? public class Foo int i static int i public static void main(stringl] args) Fofl new Foo ( ) ; System . out . println ("f1.i is " + f1. + " f1.3 is " + f1.3); F f2 = new F () ; System . out . printIn("f2.1 is " + f2. + " f2.3 IS " + f2.3); Fof3 -new Foo ( ) ; system.out.println("3.i is " + f3.i" f3.s is " + f3.s) public Foo) i+ti 9++i
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
