java exception interview

Опубликовано: 02 Август 2012
на канале: 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 ?


На этой странице сайта вы можете посмотреть видео онлайн java exception interview длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Interview DOT 02 Август 2012, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 4,321 раз и оно понравилось 5 зрителям. Приятного просмотра!