auto commit

This commit is contained in:
CyC2018
2019-08-11 23:10:46 +08:00
parent 353bbf6af0
commit fbf0eba5fd
4 changed files with 10 additions and 10 deletions

View File

@ -63,8 +63,8 @@ boolean 只有两个值true、false可以使用 1 bit 来存储,但是
基本类型都有对应的包装类型基本类型与其对应的包装类型之间的赋值使用自动装箱与拆箱完成
```java
Integer x = 2; // 装箱
int y = x; // 拆箱
Integer x = 2; // 装箱 调用了 Integer.valueOf(2)
int y = x; // 拆箱 调用了 Integer.intValue(x)
```
## 缓存池
@ -154,7 +154,7 @@ System.out.println(m == n); // true
## 概览
String 被声明为 final因此它不可被继承
String 被声明为 final因此它不可被继承(Integer 等包装类也不能被继承
Java 8 String 内部使用 char 数组存储数据