Question: What gets printed after execution? public class Helloworld public static void main(String args) String strl - Kermit the Frog; String str2 = Oscar the Grouch;
What gets printed after execution? public class Helloworld public static void main(String args) String strl - "Kermit the Frog"; String str2 = "Oscar the Grouch"; System.out.println(stri.length(); // System.out.println(stri.charAt(0); // System.out.println(stri.indexOf('.')); // System.out.println(stri.toUpperCase()); // System.out.println(stri.tolowerCase(); // 1 How do we compare strl and str2 using Java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
