JAVA中 int 和integer的区别

2025-12-06 12:01:11
推荐回答(1个)
回答1:

int是基本的数据类型
integer是类
int的初始值为0,不能为null,如果需要为null的时候,需要用integer