Question: If the following code appears in a Java class, what wil it print out when run? (Try to reason about this before putting it in


If the following code appears in a Java class, what wil it print out when run? (Try to reason about this before putting it in Eclipse.) public static void fooO String s = null; System.out.println("1"); System.out.println(s.lengthO); System.out.println("2"; public static void main(String] args) System.out.printlnC"3"); try t System.out.println("4); fooO System.out.printlnc"5" catch CException e) f System.out.println("6 System.out.printlnc"7") 4 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
