Answer (Choose 1 answer)
What happens when you try to compile and run the following program?
public class Main {
public static void main(String argv[]){String s1 = "HEY";
String s2 = new String(new char[]{'H', 'E','Y'});
if(s1.equals(s2))
System.out.println("OK");
else
System.out.println("NOT OK");
System.out.println();
}
}
A. OK
B. NOT OK
C. OK NOT OK
D. The program has a compile error.
E35