Hi,
Unlike Integer class in
java, Float has a field called NaN. A constant holding a Not-a-Number value of type float.
so when you do 12.0/0 , this is NaN.This is not the same with integers.You get an exception when you do 12/0 , but not whne 12.0/0.
Hope this helps.
Suman Tedla.