Why is some output in Eclipse console - red?

2019-02-22 15:53发布

I have console output of different color in Eclipse: red and black.

What does the color mean in this context?

enter image description here

2条回答
乱世女痞
2楼-- · 2019-02-22 16:01

The difference is System.out v. System.err

查看更多
乱世女痞
3楼-- · 2019-02-22 16:12

If the console preferences settings are standard (in other words, you haven't made any changes), then red is for error

Black is Standard Out Text Color

This preference controls the color of text written to the standard output stream by an application.

Red is Standard Error Text Color

This preference controls the color of text written to the standard error stream by an application.

Docs

查看更多
登录 后发表回答