Question from the Java test

Compare two Integers and two Longs in Java

Expert

What is the output of executing the following code?

public class Main {
	public static void main(String[] args) {
		Integer x = 100;
		Integer y = 100;
		Integer w = 200;
		Integer z = 200;
	    System.out.print((x == y) + " " + (w == z));
	}
}
Author: FodiéStatus: PublishedQuestion passed 109 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!