1.

What will happen if you run 1.0/0.0?

Answer»

The double class provides certain rules like Double.INFINITY, NaN, -0.0, etc which aids in arithmetic calculations. The given problem will return Double.INFINITY without throwing any Arithmetic Exception.




Discussion

No Comment Found