Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is "err" stream ?  RSS feed

 
omkar patkar
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is "err" stream ? How is it different from normal IO stream ?
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you mean by "normal IOStream". The "err" stream is an OutputStream. It differs from the "out" stream in that it prints its output to "standard error" (or stderr) where as "out" prints to "standard out" (or stdout). The terms stderr and stdout steam from Unix where it is common to separate the "regular" output from the error messages. This allows you to redirect the "regular" output to a file and let the error messages print to the console, for example.

Layne
 
Hey! Wanna see my flashlight? It looks like this tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!