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
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?
true false