posted 19 years ago
I think there is a little bit of an assumption here that because the variable has the value 0 it is either int, byte, short, or char. Any of these will throw a runtime error.
Where I think this question gets a little off is that you can do the following.
double a = 0;
5/a;
and you don't get a compile or runtime error.