From cd9528e3701c60b2ab7cfdba7976cf1fe2bbc00f Mon Sep 17 00:00:00 2001 From: invalided <482149400@qq.com> Date: Tue, 28 Jun 2022 22:11:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A0=E6=AD=A3JDK=208=E4=B8=AD=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E5=B8=B8=E9=87=8F=E6=B1=A0=E7=9A=84=E5=AD=98?= =?UTF-8?q?=E6=94=BE=E4=BD=8D=E7=BD=AE=EF=BC=8C=E7=94=B1=E6=B0=B8=E4=B9=85?= =?UTF-8?q?=E4=BB=A3=E6=94=B9=E4=B8=BA=E5=A0=86=E5=86=85=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/basics/java-basic/string-pool.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basics/java-basic/string-pool.md b/docs/basics/java-basic/string-pool.md index e311f685..fb67ce02 100644 --- a/docs/basics/java-basic/string-pool.md +++ b/docs/basics/java-basic/string-pool.md @@ -23,4 +23,4 @@ String作为一个Java类,可以通过以下两种方式创建一个字符串 因为按照计划,JDK会在后续的版本中通过元空间来代替永久代,所以首先在JDK 7中,将字符串常量池先从永久代中移出,暂时放到了堆内存中。 -在JDK 8中,彻底移除了永久代,使用元空间替代了永久代,于是字符串常量池再次从堆内存移动到永久代中 \ No newline at end of file +在JDK 8中,彻底移除了永久代,取而代之的为元空间,此时字符串常量池存放在堆内存中。 \ No newline at end of file