Code Flashcards

1
Q
Given code fragment:
Integer a = 127;
Integer b = Integer.valueOf(127);
Integer x = 128;
Integer y = Integer.valueOf(128);

System.out.print((a==b) + “ “ + (x==y) );

What is the output?

A

true false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly