Just wondering System.out.println()

后端 未结 6 1897
故里飘歌
故里飘歌 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条回答
  •  萌比男神i
    2021-01-24 11:29

    No, your understanding is wrong.

    "Then What is right" -

    System - a class,

    out - a static public member of type PrintStream ,

    and oh yes println() is a method.

    You were 33% right ;) read java documentation for this here

提交回复
热议问题