关于java的print()

print方法是类PrintStream的方法成员,而System类有一个static的PrintStream类型的属性成员,名叫out,我们平时写的System.out.print("helloworld")就是在通过out成员调用PrintStream的方法;

而PrintStream的构造器,里面也都有参数OutputStream out,我需要弄懂在打印的过程中,PrintStream是如何被构造的。

原文地址:https://www.cnblogs.com/alden-it/p/6349953.html