123456789101112131415



Question 1: Output of the below program ?
public static void main(String ags[]){
String a=new String("abc");
String b=new String("abc");
System.out.print(a.equals(b));
System.out.print(a==b);
}

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