public static void main(String[] args) { String s1 = null; String s2 = null; if (s1 == s2) System.out.print("A"); if (s1.equals(s2)) System.out.print("B"); }
String s1 = null;
String s2 = null;
if (s1 == s2)
System.out.print("A");
if (s1.equals(s2))
System.out.print("B");
}
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.