What is the result of this code execution:

System.out.println(0.0/0.0 + 10);
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.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes