此处省略一万行自白......................................
1.直接输出打印是String对象的null
String str = null;
System.out.print(str);
输出结果是:null
源码是:
public void print(String s) {
if (s == null) {
s = "null";
}
write(s);
}