What is the result of this code execution:

System.out.println(0.0/0.0 + 10);
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
Sign Up Now
or Subscribe for future quizzes