Originally posted by k2p2
View Post
Code:
public class Test {
public static void main(String[] args) {
System.out.println("Zero / Zero is: " + (0 / 0));
}
}
Result:
Exception in thread "main" java.lang.ArithmeticException: / by zero
at Test.main(Test.java:6)
This is exactly the same exception raising as (1 / 0).
Comment