Hello, I�m new at this. My question regards a common error message I�m been receiving lately. java:15: unreported exception java.io.IOException; must be caught or declared to be thrown. This appear in several situations, every time I solve it I haven�t got a clue what I did to solve it. So I need help to interpret the message. Dose anyone have a minute over for a short explanation? Thanks.
posted 13 years ago
an exception is an error that must be handled by the programmer or "thrown" back to the method which has called this particular method. Even main() is called by the JVM & hence even main can "throw" back the exception to the JVM. rather than me trying to explain this to you, i'll let the developers at Sun do the honours....and trust me, they do a very good job... http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html hope it helped
If quitters never win, and winners never cheat, who's the idiot that said: Quit while you're ahead?