title: What is the point of System.err?
body: <p>In UNIX, I'm supposed to write a Java file that will print "EXIT 1" to the standard error, and then exit with a status of 1.</p>
  
  <p>Here is my approach..</p>
  
  <pre><code>System.err.println("EXIT 1");
  System.exit(1);
  </code></pre>
  
  <p>Is this what I'm supposed to do?</p>
  
  <p>If so, how am I supposed to use it in the Unix shells? When I compile and run it in the bash, it just prints "EXIT 1" (so it does the same thing as System.out.println, why should I use "err"?). What is the "standard error" here?</p>