Answered step by step
Verified Expert Solution
Question
1 Approved Answer
public class App public static void main (String args string strlJava string str2 = new String (java); System.out.println (Equal) else system.out. println (Not Equal; Which
public class App public static void main (String args string strl"Java" string str2 = new String ("java"); System.out.println ("Equal") else system.out. println ("Not Equal"; Which code fragment, when inserted at line n1, enables the App class to print Equal? CA) String str3 = str2; if (str1 == str3) c B) if (stri, equalsignore Case (str2)) C) String str3 = str2; if (strl.equals (str3)) C D) if (strl.toLowerCase str2.toLowerCase ))
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started