Рет қаралды 7
1. ArithmeticException
when you divide integer with zero( integer ) you will get ArithmeticException
2. NaN
when you use 0.0 / 0.0 you will get +NaN or -NaN here 0.0 is decimal or double or float
0/0.0 or 0.0/0 you will get +NaN or -NaN ( NaN stands for Not a Number )
3. Infinity
when you divide any decimal value except zero you will get -Infinity or + Infinity