0
What is the output of the following Java program?
public class Main {
public static void main(String[] args) {
String a = "hi", b = new String("hi");
System.out.println((a == b) + " " + a.equals(b) + " " + (a == b.intern()));
}
}- Atrue true true
- Bfalse false true
- Cfalse true true
- Dfalse true false
Correct answer: C