Question: SR 3.7 What output is produced by the following code fragment? String sl = Foundations; String s2; System.out.println(sl.charAt(1)); s2 = sl.substring(0, 5); System.out.println(s2); System.out.println

SR 3.7 What output is produced by the following code fragment? String sl = "Foundations"; String s2; System.out.println(sl.charAt(1)); s2 = sl.substring(0, 5); System.out.println(s2); System.out.println (sl.length()); System.out.println (s2.length());
Step by Step Solution
3.50 Rating (167 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
