title: Java: Why don't the PrintWriter or PrintStream classes throw exception?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/297303/printwriter-and-printstream-never-throw-ioexceptions">PrintWriter and PrintStream never throw IOExceptions</a>  </p>
  </blockquote>
  
  
  
  <p>Maybe the question is a bit "strange". But i'm curious to know why both <a href="http://docs.oracle.com/javase/7/docs/api/java/io/PrintWriter.html" rel="nofollow noreferrer">PrintWriter</a> and <a href="http://docs.oracle.com/javase/7/docs/api/java/io/PrintStream.html" rel="nofollow noreferrer">PrintStream</a> don't check automatically runtime exceptions , and they provides a checkError() method.</p>
  
  <p>Thanks to all in advance.</p>