System.out对象是属于类System还是类PrintStream? [英] Does the System.out object belong to class System or class PrintStream?
问题描述
我刚刚接触编程,刚刚开始学习Java。我很好奇,对象System.out属于类System或类PrintStream?
我提到一个教科书,JAVA CONCEPTS 4 / e。教科书指出,要在System类中使用out对象,必须将它引用为 System.out
System.out
属于PrintStream类。
我搜索google和stackoverflow,但所有的答案
out属于类System,并且类型为PrintStream:) / p>
I'm new to programming and I just started learning Java. I'm curious that does the object System.out belong to class System or class PrintStream?
I referred to a textbook, JAVA CONCEPTS 4/e. The textbook states that to use the out object in the System class, you must refer it as System.out
but later in the book it states that the System.out
belongs to class PrintStream.
I've searched google and stackoverflow but all the answers are too hard for me to understand.
"out" belongs to class "System" and is of type "PrintStream" :)
这篇关于System.out对象是属于类System还是类PrintStream?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!