Astha Sharma wrote:Why doesn't it throw ArithmaticException?
Instead it prints infinity. Isn't java partial with int in this case
Not sure what you mean by "partial with int", but Java supports the IEEE 754 floating point standard -- and that's how it is defined. A positive number divided by positive zero results in positive infinity.