(This is a follow up question to Why is this exception is not printed? Why is it showing an error?)
Here in the below code why is the ArithmeticException not tr
Because Divide by zero applies to integers and not floats as per JLS
Divide by zero
and you would get output as
Its not gonna printed a=Infinity
since this is computed as Infinity
Infinity
And in case you want to see an exception just change
a=44/d;
to this
a=44/0;