摘要: package com.HelloWorld;/*String str1= "hello", String str2="he"+"llo";之所以str1==str2返回true是因为两者都是在字符串常量池中(由于初始化就会在此区域分布内存)而常量池中的有个与栈区类似的特性,就是当str2指向的常量 阅读全文
posted @ 2018-04-29 19:45 简简单单zjl 阅读(2486) 评论(0) 推荐(0)