Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
735 views
in Technique[技术] by (71.8m points)

java - Why is some output in Eclipse console - red?

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

What does the color mean in this context?

enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...