![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
java技术
JAVA技术学习提升
我是叫帽帽啊
这个作者很懒,什么都没留下…
展开
-
从理解new String()到JVM中的常量池详解 文章测试代码以JDK8为准
最近面试被问到了Integer的缓冲池和Long的缓冲池,虽然面试回答对了,但是决定整理一下相关的知识。在Java的内存分配中,总共3种常量池:1.字符串常量池(String Constant Pool):1.1:字符串常量池在Java内存区域的哪个位置?在JDK6.0及之前版本,字符串常量池是放在Perm Gen区(也就是方法区)中; 在JDK7.0版本,字符串常量池被移到了堆...原创 2020-03-09 20:04:40 · 564 阅读 · 0 评论 -
ArrayList c.toArray might (incorrectly) not return Object[] (see 6260652)
public ArrayList(Collection<? extends E> c) { elementData = c.toArray(); if ((size = elementData.length) != 0) { // c.toArray might (incorrectly) not return Object[]...转载 2018-11-28 21:00:01 · 133 阅读 · 0 评论