int数据类型的最大值的加上1变成负的最小值的问题的解释...

关于int数据类型的数的最大值加上一之后变成负的最小值的问题的解释!!
  1. public class Test {  
  2.     public static void main(String[] args) {  
  3.         int max = Integer.MAX_VALUE;  
  4.         int min = Integer.MIN_VALUE;  
  5.         System.out.println("int的最大值: " + max);  //01111111 11111111 11111111 11111111  
  6.         System.out.println("int的最大值+1: " + (max+1));        //11111111 11111111 11111111 11111111  
  7.         System.out.println("int的最小值: " + min);  //10000000 00000000 00000000 00000000  
  8.         System.out.println("int的最小值-1: " + (min-1));    //01111111 11111111 11111111 11111111  
  9.     }  
原文地址:https://www.cnblogs.com/yxb9527/p/6048745.html