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.
Java Quiz
Start Quiz

or Read more about Java Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback