java exception interview

Pubblicato il: 02 agosto 2012
sul canale di: Interview DOT
4,321
5

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 ?


In questa pagina del sito puoi guardare il video online java exception interview della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Interview DOT 02 agosto 2012, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 4,321 volte e gli è piaciuto 5 spettatori. Buona visione!