Skip to content

Commit 3bb6f59

Browse files
committed
Update Java内存区域.md
1 parent d9732e1 commit 3bb6f59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/java/jvm/Java内存区域.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ true
342342

343343
### 4.3 8 种基本类型的包装类和常量池
344344

345-
- **Java 基本类型的包装类的大部分都实现了常量池技术,即 Byte,Short,Integer,Long,Character,Boolean;这 5 种包装类默认创建了数值[-128,127] 的相应类型的缓存数据,但是超出此范围仍然会去创建新的对象。**
345+
- **Java 基本类型的包装类的大部分都实现了常量池技术,即 Byte,Short,Integer,Long,Character,Boolean;这 5 种包装类默认创建了数值[-128,127] 的相应类型的缓存数据,但是超出此范围仍然会去创建新的对象。** 为啥把缓存设置为[-128,127]区间?([参见issue/461](https://github.com/Snailclimb/JavaGuide/issues/461))性能和资源之间的权衡。
346346
- **两种浮点数类型的包装类 Float,Double 并没有实现常量池技术。**
347347

348348
```java

0 commit comments

Comments
 (0)