Java int 與integer的對比區別 ... int 是前者而integer 是後者(也就是一個類);因此在類進行初始化時int類的變數初始為0.而Integer的變數則初始化為null.
確定! 回上一頁