Vidyalelo
Java Programming · Q17

Java Autoboxing

Programming · Java Programming · question 17

Q17

In Java, what is the result of the expression `Integer.valueOf(10) + Integer.valueOf(20)`?

A.
Runtime error
B.
Compilation error
C.
`30`
Answer
D.
`1020`

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board