Question: What will be printed by the following Java code? String 31 - ABCDEFG ABCD: String 32 CD: System.out.print (31.substring(31.indexOf(32) + 32.length() - 1, s1.length()); OCDEFG
What will be printed by the following Java code? String 31 - "ABCDEFG ABCD": String 32 "CD": System.out.print (31.substring(31.indexOf(32) + 32.length() - 1, s1.length()); OCDEFG ABCD O DEFG ABCD EFG ABCD FG ABCD
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
