JAVA中基本数据类型和封装类的区别Integer

2025-04-14 06:43:35
推荐回答(1个)
回答1:

  1. int是基础数据类型,Integer是引用数据类型。

  2. int的默认值为0,Integer的默认值为null。