RE: What is checked and unchecked exception? How can w...
In java there are possibly two kinds of exceptions be raised! - ->Checked A Cheched exception is a compile time exception ,whick is tackeld by the compiler! --->Unchecked An unchecked exception is somethin that is raised at run time! eg...Stack overflow, etc
RE: What is checked and unchecked exception? How can w...
Those Exception which are required to show in throws list i.e those exceptions which compiler can not check without throw keyword are kwon as Checked Exception.
runtime execption have a subclass which are not required to be checked i.e compiler can check them which exception to be raised are known as unchecked exception.
RE: What is checked and unchecked exception? How can w...
Compiler will be having the list of checked exceptions.If the client's program generates these exceptions then the compiler compels the client to handle the exceptions.
Where as Unchecked exceptions are ignored by the compiler.The user need not handle these exceptions.These will be handled by the default handler at run time.
examples:All RuntimeExceptions,Errors and their subclasses