Hi,
Im going to take the exam next week and i was very confident to do well but after i took abhilash's Quiz i feel the is more to it. Here is a question on
String which serprised me. Can anyone explain why its so.
The answer is "Equal" and "Not Equal".
public class AQuestion {
public static void main(String args[]) {
f("String".toString() == "String")
System.out.println("Equal");
else
System.out.println("Not Equal");
if(" String ".trim() == "String")
System.out.println("Equal");
else
System.out.println("Not Equal");
}
}