Kizspy | Question: 8
(Choose 1 answer)
What will be the output of the following code snippet?
String s1 "Java";
String s2="Java";
String s3 = new String("Java");
System.out.println(s1 == s2);
System.out.println(s1 == $3);
System.out.println(s1.equals(s3));
FJOVERFLOW.Com
A. true
true
true
B. true
false
true
C. false
true
true
D. true
true
false