Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Although Java throws a java.lang.ArithmeticException: / by zero exception for division by zero, the same issue as with C\C++ manifests, while dividing the Integer.MIN_VALUE by -1. It
produces Integer.MIN_VALUE unexpectedly (since the result is -(Integer.MIN_VALUE)=Integer.MAX_VALUE +1)).

...