*
*String类和StringBuffer类
* 位于java.lang包中
* String类对象中的内容一旦被初始化就不能再改变
* StringBuffer类中用于封装内容可以改变的字符串
* toString()方法转换成String类型
* String x= "a" + 4 + "c"; 编译时等效于
* Stirng x = new StringBuffer().append("a").append(4).append("C").toString();
*
*字符串常量(如"hello")实际上是一种特殊的匿名String对象,比较下面的两种情况差导
* String s1 = "hello"; String s2 = "hello";
* 这种情况这两个匿名函数是相等的,因为会将内容相同的常量指向同一个地址
* String s1 = new String("hello");
* String s2 = new String("hello");
* 这种情况两种类型是不相等的,因为内存地址不一样