java exception interview

Publicado em: 02 Agosto 2012
no canal de: 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 ?


Nesta página do site você pode assistir ao vídeo on-line java exception interview duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Interview DOT 02 Agosto 2012, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 4,321 vezes e gostou 5 espectadores. Boa visualização!