Hi,
18. Which of the following statements would return false? if given the following statements.
String s = new String ("New year");
String s1 = new String("new Year");
A) s == s1
B) s.equals(s1);
C) s = s1;
D) None of the above
Answer given : D
According to me answer should be: A,B
Can someone confirm.
May be, I have misunderstood the qwestion.
Thanks.