关于java的print()

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

 

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

posted on 2017-01-25 20:18  小改Alden  阅读(778)  评论(0编辑  收藏  举报

导航