What's the meaning of System.out.println in Java?

后端 未结 19 829
谎友^
谎友^ 2020-11-27 11:49

Is this static println function in out class from System namespace?

namespace System {
  class out {
    static println ...         


        
19条回答
  •  悲&欢浪女
    2020-11-27 12:25

    Check following link:

    http://download.oracle.com/javase/1.5.0/docs/api/java/lang/System.html

    You will clearly see that:

    System is a class in the java.lang package.

    out is a static member of the System class, and is an instance of java.io.PrintStream.

    println is a method of java.io.PrintStream. This method is overloaded to print message to output destination, which is typically a console or file.

提交回复
热议问题