1z0-809 question 92 discussion

View all Java SE 8 Programmer II Exam here
back to oracle forum

Question 92

Given:

What is the result?

  • A. IT:null
  • B. A NullPointerException is thrown at run time.
  • C. A compilation error occurs.
  • D. IT:0.0
Answer:

D

User Votes:
A
50%
B 1 votes
50%
C
50%
D
50%
Discussions
0 / 1000
vidhya
6 months, 3 weeks ago

you cannot try to unbox or autobox the null.. when you do that , it gives null pointer exception.so option B is the correct ans