I’ve recently discovered a nice new feature in Java 8: methods to properly handle integer overflows. Consider the following example: When you compile and run it, this is the result: Quite obviously, this can’t be mathematically right. The problem occurs because an int has a limited size of 4 byte. When this size is tooContinue reading “New in Java 8: Catching Integer Overflows”