package Joker;
/*
* String
* char[]
* 字符串内容一旦写定,不能更改
* ==:地址是否相等
* equals:内容是否相等
*/
public class bili {
public static void main(String[] args) {
String a="abc";//常量池
String b=new String("abc");//堆 地址1
String c=new String("abc");//堆 地址2
String d="abc";//常量池
System.out.println(a==d);
System.out.println(a==c);
System.out.println(b==c);
System.out.println(a.equals(b));
System.out.println(b.equals(c));
System.out.println(c.equals(d));
}

}