We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当 jvm 执行 getstatic 指令时会初始化类。即程序访问类的静态变量(不是静态常量,常量会被加载到运行时常量池)。
getstatic
来自https://javaguide.cn/java/jvm/class-loading-process.html#%E5%88%9D%E5%A7%8B%E5%8C%96 准确来说是访问编译期常量不会初始化类,访问运行时常量还是会初始化类,见https://blog.csdn.net/qq_34802416/article/details/83548369
The text was updated successfully, but these errors were encountered:
No branches or pull requests
来自https://javaguide.cn/java/jvm/class-loading-process.html#%E5%88%9D%E5%A7%8B%E5%8C%96
准确来说是访问编译期常量不会初始化类,访问运行时常量还是会初始化类,见https://blog.csdn.net/qq_34802416/article/details/83548369
The text was updated successfully, but these errors were encountered: