Vidyalelo
Java Programming · Q19

Java Autoboxing

Programming · Java Programming · question 19

Q19

What is the result of the following code in Java? Integer a = 100; int b = a;

A.
`No error, it compiles successfully`
Answer
B.
`Compilation error`
C.
`Runtime error`
D.
`NullPointerException`

Answer: Option A

Solution

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