Quizzes
Java
What is th ...
Theory
Android
Log In
Sign Up
Programming Quizzes
Theory
Snippets
Papers
Landing
Android
Subscriptions
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
What is the result of this code execution:
System.out.println(0.0/0.0 + 10);
NaN
10
Infinity
Compilation error
Explanation
The result of division 0.0 to 0.0 will be NaN - Not a Number, an undefined value.
Any arithmetic operation with NaN as well gives NaN.
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
J
ava Quiz
Start Quiz
or
Read more about
Java Quiz
Follow CodeGalaxy
Mobile Beta
Send Feedback
Login in to like
Login in to comment