Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats with this new IOError class, when is it thrown?

class thrown
0
Posted

Whats with this new IOError class, when is it thrown?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123