difference between System.out.println() and System.err.println()

后端 未结 7 617
情书的邮戳
情书的邮戳 2020-12-12 16:16

What is the difference between System.out.println() and System.err.println() in Java?

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-12 16:42

    System.out.println("wassup"); refers to when you have to output a certain result pertaining to the proper input given by the user whereas System.err.println("duh, that's wrong); is a reference to show that the input provided is wrong or there is some other error.

    Most of the IDEs show this in red color (System.err.print).

提交回复
热议问题