在Java的内存分配中,总共3种常量池: 转发链接:https://blog.csdn.net/zm13007310400/article/details/77534349 转发链接:https://www.cnblogs.com/superyc/p/9975254.html 1.字符串常量池(String Constant Pool) 2.class常量池(Class Constant Pool) 3.运行时常量池(Runtime Constant Pool)