当前位置:网站首页>==Classic interview questions

==Classic interview questions

2022-06-22 09:13:00 C_ x_ three hundred and thirty

final String str2 = "ab";
final String str3 = "cd";
String str4 = str2+str3;
String str5 = "abcd";
System.out.println("str4 = str5 : " + (str4==str5));//true


String str2 = "ab";
String str3 = "cd";
String str4 = str2+str3;
String str5 = "abcd";
System.out.println("str4 = str5 : " + (str4==str5));//false
原网站

版权声明
本文为[C_ x_ three hundred and thirty]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206220910015917.html