Whats with this new IOError class, when is it thrown?
Location: http://www.jguru.com/faq/view.jsp?EID=1303865 Created: Jun 30, 2006 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) The Console class has methods to read console input with readLine() and readPassword(). These methods throw IOError instead of IOException. My best guess at why the difference is becasue IOError is unchecked. Thus if you are teaching Java to a first year computer science student, you don’t have to teach exception handling just yet, but still have a way to catch problems, if you want.