Java Programming
Accenture Technical PrimermediumJava Programming03 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
Compilation Error
B
false
C
CastException
D
true
E
Runtime Exception

Correct answer: true

Explanation

Quick AnswerThe correct answer is true because it directly addresses the core logic of Java Programming.

Correct answer: true.

Related Accenture Java Programming questions

Practice more Accenture Java Programming questions

PrimerPrep has 1400+ practice questions, 2026 simulations and coding hands-on — all free.

Watch Walkthroughs!