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

后端 未结 19 777
谎友^
谎友^ 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:26

    System - class which is final in nature. public final class System{}. Belongs to java.lang package

    out - static reference variable of type PrintStream

    println() - non static method in PrintStream class. PrintStream belongs to java.io package.

    To understand it better you can visit : How System.out.println() Works In Java

提交回复
热议问题