Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2e5f4fb

Browse files
Merge branch 'master' of https://github.com/Snailclimb/JavaGuide
2 parents 97c0d2f + 80d1ffc commit 2e5f4fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/java/jvm/JVM垃圾回收.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ JDK1.2 之前,Java 中引用的定义很传统:如果 reference 类型的数
194194

195195
JDK1.2 以后,Java 对引用的概念进行了扩充,将引用分为强引用、软引用、弱引用、虚引用四种(引用强度逐渐减弱)
196196

197-
**1.强引用**
197+
**1.强引用(StrongReference)**
198198

199199
以前我们使用的大部分引用实际上都是强引用,这是使用最普遍的引用。如果一个对象具有强引用,那就类似于**必不可少的生活用品**,垃圾回收器绝不会回收它。当内存空间不足,Java 虚拟机宁愿抛出 OutOfMemoryError 错误,使程序异常终止,也不会靠随意回收具有强引用的对象来解决内存不足问题。
200200

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /