标签:class out log test [] ring equals .com www
public class String01 {
public static void main(String[] args) {
String a="test";
String b=new String("test");
System.out.println(a==b);//false
System.out.println(a.equals(b));//true
}
}
具体参看:
https://www.cnblogs.com/Eason-S/p/5524837.html
标签:class out log test [] ring equals .com www
原文地址:https://www.cnblogs.com/shijinglu2018/p/9629054.html