123456789101112131415



Question 1: What will be the output of the following code ?
public class Strings {
public static void main(String ads[]){
String arr[]={"meow","bray","moo"};
String a="meow";
System.out.println(arr[0]==a);
}
}

1. true
2. false
3. Compiler error: at line 5
4. Runtime error: at line 5