What is System.out exactly?

后端 未结 3 1970
既然无缘
既然无缘 2021-01-12 22:28

I noticed that any call to System.out.println() from a JAR file that hasn\'t been started by the command line (i.e. a Runnable JAR file started by user with dou

3条回答
  •  梦毁少年i
    2021-01-12 22:59

    Here, System.out represents the output stream - where your output will go. By default it is set to console. But you can change it to other like - text file. Most often, in large application it is used for logging (usually by new programmer, bad idea). In this case you can see the output in appropriate log file.

提交回复
热议问题