Click here - / @interviewdot to get notifications. Explain Java Exception ?
Exception are such anomalous conditions which changes the normal flow of execution of a program. Exceptions are used for signaling erroneous (exceptional) conditions which occur during the run time processing.
Two types of exception : CHECKED & UNCHECKED
Checked Exceptions
These are the exceptions which occur during the compile time of the program.
The compiler checks at the compile time that whether the program contains handlers for checked exceptions or not.
These exceptions do not extend RuntimeException class and must be handled to avoid a compile-time error by the programmer.
These exceptions extend thejava.lang.Exception class These exceptional conditions should be anticipated and recovered by an application.
UnChecked Exceptions
These are the exceptions which occur during the runtime of the program.
The compiler does not checks at the compile time that whether the program contains handlers for unchecked exceptions or not.
These exceptions extend RuntimeException class and do not need to be handled by the programmer.
I will be answering questions like ???
Can I catch runtime exception ?
Can I catch error ?
Why should you throw an exception early ?
Explain exception hierarchy ?
When should I use checked and unchecked exception ?
Explain catch block,finally block ? Its purpose ?
Sur cette page du site, vous pouvez voir la vidéo en ligne java exception interview durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Interview DOT 02 août 2012, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 4,321 fois et il a aimé 5 téléspectateurs. Bon visionnage!