ExamVeda
Login
Home
This question belongs to Java Program Java Autoboxing
Java Autoboxing
?

What is the result of the following code in Java?
Integer num = null;
int result = num + 5;

Answer & Solution
Correct Answer: Option C
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Chaitanya Reddy
Chaitanya Reddy 3 years ago
this gives a null pointer exception not compliation error