的System.out.println();履行 [英] System.out.println(); Implementation
本文介绍了的System.out.println();履行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这里有人能告诉我 System.out.println()是如何实现的?我尝试了很多网站,但没有得到任何满意的答案。
Can anyone here tell me how System.out.println() is implemented? I have tried many sites but didn't get any satisfactory answer.
推荐答案
在System.out.println中,
In System.out.println,
- 系统是最终类。
- out是系统内PrintStream类的对象。
- println()是PrintStream的一种方法
所以要打印一些我们需要调用printStn的东西,它在PrintStream里面对象在System class.Hence
System.out.println();
So to print something we need to call a println which is inside PrintStream class whose object is inside System class.Hence System.out.println();
的类请参阅以下
链接
这篇关于的System.out.println();履行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文