Int與Integer的比較

Int與Integer的比較 Java爲每一個原始類型提供了封裝類型:web -原始類型:boolean、char、byte、short、int、long 、float、double緩存 -封裝類型:Boolean、Character、Byte、Short、Integer、Long、Float、Doublesvg Integer是int的封裝類,int的初值爲0,Integer的初值爲null。即
相關文章
相關標籤/搜索