123456789101112131415



Question 1: What is the output of the following code ?
public static void main(String ags[]){
String a="abc";
String b="abc";
System.out.print(a.equals(b));
System.out.print(a==b);
}

1. truefalse
2. truetrue
3. falsetrue
4. falsefalse