Given: What is the result?
A.
They really match They really match
B.
Nothing Prints
C.
They match They really match
D.
They match
E.
They really match
Given: What is the result?
A.
They really match They really match
B.
Nothing Prints
C.
They match They really match
D.
They match
E.
They really match
import java.lang.Math; // header stuff MUST go above the first class
// our main class becomes a file but the main method is still found
public class HelloWorld
{
public static void main(String[] args)
{
String message1 = “Wham bam!”;
String message2 = new String(“Wham bam!”);
if (message1 == message2)
System.out.println(“They match”);
if (message1.equals(message2))
System.out.println(“They really match”);
}
}