1.5-1.7都在heap中,在1.7移了位置到young gen,1.5在perm gen。 In JDK 7, interned strings are no longer allocated in the permanent generation of the Java heap, but are instead allocated in the main part of the Java heap (known as the young and old generations), along with the other objects created by the application. This change will result in more data residing in the main Java heap, and less data in the permanent generation, and thus may require heap sizes to be adjusted. Most applications will see only relatively small differences in heap usage due to this change, but larger applications that load many classes or make heavy use of the String.intern() method will see more significant differences. RFE: 6962931 但是在1.8用本地可用内存来存放常量池 http://blog.csdn.net/zhyhang/article/details/17246223/
《Something Just Like This》,网上关于这首歌有一个热评:
你背单词时,阿拉斯加的鳕鱼正跃出水面;
你算数学时,太平洋彼岸的海鸥振翅掠过城市上空;
你晚自习时,极图中的夜空散漫了五彩斑斓。
但是少年你别着急,在你为自己未来踏踏实实地努力时,那些你感觉从来不会看到的景色,那些你觉得终身不会遇到的人,正一步步向你走来。