What happens when you compile and run the following program?
public class X
{
public static void main(final String[] args)
{
final String a = "hello world";
final String b = "hello" + " world";
System.out.println("a == b is " + a == b);
}
}
A) Compilation error.
B) Output "a == b is false
C) Output "a == b is true
D) Output true
E) Output false