System.out是PrintStream的对象,在PrintStream中定义了一系列的print()和println()方法,所以前面使用的System.out.print()或System.out.println()语句调用的实际上就是PrintStream类的方法。