Java Programming
Accenture PrimermediumJava Programming3. Class And Objects, Date Api

Integer x1 = new Integer(120); int x2 = 120; System.out.println( x1 == x2 ); What will be the output of the above code fragment?

Answer options

A
false
B
CastException
C
true
D
Runtime Exception
E
Compilation Error

Correct answer: true

Explanation

Correct answer: true.

Related Accenture Java Programming questions

Practice more Accenture Java Programming questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.