Just wondering System.out.println()

后端 未结 6 1847
故里飘歌
故里飘歌 2021-01-24 10:53

Just asking if I have the right understanding

System.out.println();

System is the package out is the class println() is the method

If t

6条回答
  •  后悔当初
    2021-01-24 11:25

    System is not a package. It is a class which is contained inside java.lang package

    Take a look here http://docs.oracle.com/javase/7/docs/api/java/lang/System.html

    out is a PrintStream object (static in case of System class) in which println() is one of the methods

提交回复
热议问题