java基础:int和integer区别时间:2023-03-09 23:12:47 int是基础数据类型; integer是包装类,里面包含一些基础的方法,最常见的就是数据转换; 比如int转String: int a=0; String b=Integer.toString(a);