什么是字段
字段可以理解为常量,也可以桥凯理解为属性,就像数组中的length属性。字段不能当作方法来理解。System.out.println()的意思:当System调用它的常野消扮量字段值时,也就是“System.out”,它会返回一个 PrintStream对象,println就是 PrintStream类中的方法,PrintStream对颂灶象当然可以调用println了。也可以表示为:PrintStream ps = System.out;ps.println() ;
什么是字段
字段可以理解为常量,也可以桥凯理解为属性,就像数组中的length属性。字段不能当作方法来理解。System.out.println()的意思:当System调用它的常野消扮量字段值时,也就是“System.out”,它会返回一个 PrintStream对象,println就是 PrintStream类中的方法,PrintStream对颂灶象当然可以调用println了。也可以表示为:PrintStream ps = System.out;ps.println() ;