When using System.out.println or System.err.println what is the difference? In a console app they seems to be practically the same.
Is there a way to change this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The difference is clearly defined here:
http://docs.oracle.com/javase/6/docs/api/java/lang/System.html
There are also methods defined (which you will find in this document) for how to change these streams (System.setErr, System.setOut, System.setIn)