Skip to content

Update java-basic-questions-01.md#2882

Open
JasonZhangZx wants to merge 1 commit into
Snailclimb:mainfrom
JasonZhangZx:patch-1
Open

Update java-basic-questions-01.md#2882
JasonZhangZx wants to merge 1 commit into
Snailclimb:mainfrom
JasonZhangZx:patch-1

Conversation

@JasonZhangZx

Copy link
Copy Markdown

静态成员变量在方法区(元空间),下文还有2个插图也描述的是堆

静态成员变量在方法区(元空间),下文还有2个插图也描述的是堆

@daltino daltino left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change clarifies an important distinction regarding the location of static variables in memory, correcting the explanation for versions after JDK 1.7 by specifying the "method area" instead of the heap. This update improves the technical accuracy of the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants