in java checked exceptions are exceptions which must be handled by either the method throwing the exception or by its calling method or if the current method has ducked the exception by declaring it then the caller method has to handle(or catch )it. all exceptions except RuntimeExceptions in java are checked exceptions. there is no need to declare the unchecked exceptions.but they still need to be handled somewhere down the call stack.
Unchecked exceptions are the subclasses of RuntimeException.
Runtime exceptions represent problems that are the result of a programming problem or the bugs in our program. RuntimeExceptions are exceptions that occur within the JVM during runtime. Thus,the compiler does not require that you catch or specify runtime exceptions (although you can).
Compile time exceptions (Checked Exceptions)are exceptions that occur in code outside of the Java runtime system.The compiler ensures that nonruntime exceptions are caught or specified.
posted 12 years ago
thanks a lot to all of u for helping me understand this!
I found a beautiful pie. And a tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java