+ 1
what is infinity in java?
2 Respostas
+ 3
Double.POSITIVE_INFINITY is the infinity equivalent in Java and it represents a theoretical highest number.
+ 1
ArithmeticException is only defined for division by 0 for integer type values.
If you try to divide a positive or a negative floating point number with 0 then you will get infinity or -infinity respectively.