System 是java.lang中的一个类。 System.out 中的out 代表了System类中的静态对象PrintStream,println是PrintStream中的方法。因为static 了,所以可以使用“类名.成员”来引用。 import static java.lang.System.out; public class Test { public static void main(String[] args) { out.println("hello world!"); } }