int min = Integer.MIN_VALUE -1; // min is set to Integer.MAX_VALUE by underflow int max = Integer.MAX_VALUE +1; // max is set to Integer.MIN_VALUE by overflow