auto commit
This commit is contained in:
@ -64,9 +64,11 @@ boolean 只有两个值:true、false,可以使用 1 bit 来存储,但是
|
||||
|
||||
```java
|
||||
Integer x = 2; // 装箱 调用了 Integer.valueOf(2)
|
||||
int y = x; // 拆箱 调用了 Integer.intValue(x)
|
||||
int y = x; // 拆箱 调用了 X.intValue()
|
||||
```
|
||||
|
||||
- [Autoboxing and Unboxing](https://docs.oracle.com/javase/tutorial/java/data/autoboxing.html)
|
||||
|
||||
## 缓存池
|
||||
|
||||
new Integer(123) 与 Integer.valueOf(123) 的区别在于:
|
||||
|
Reference in New Issue
Block a user