当前位置: 技术问答>java相关
System.out.println() 和System.err.println()有什么区别?THANKS
来源: 互联网 发布时间:2015-06-14
本文导语: System.out.println() 和System.err.println()有什么区别?THANKS | assume you have a class test1 written with System.err and you have a class test2 written with Sytem.out when you try :java test1>>log.txt, you will see the ...
System.out.println() 和System.err.println()有什么区别?THANKS
|
assume you have a class test1 written with System.err and
you have a class test2 written with Sytem.out
when you try :java test1>>log.txt, you will see the output displayed on the console
when you try :java test2>>log.txt, you will never get output ont the console and you can find those output in the log.txt
that's the distinction between them.hope it helps.
you have a class test2 written with Sytem.out
when you try :java test1>>log.txt, you will see the output displayed on the console
when you try :java test2>>log.txt, you will never get output ont the console and you can find those output in the log.txt
that's the distinction between them.hope it helps.