Because using integral types devided by zero wil cause ArithmeticException
But when use floating point numbers(float or double)then will not give that exception ,for instance:
ForExample:
double d=1.0/0;
System.out.println(d==Double.POSITIVE_INFINITY);
double d2 = -1.0/0;
System.out.println(d2==Double.NEGATIVE_INFINITY);
I Think that is answered to your question..you can mail me:
alaa56mm@gmail.com [ May 01, 2006: Message edited by: alaa hassan ]