Java Interview Question And Answer 35 Java Exception Interview Question Part 3
Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. Java Interview Question And Answer 35 Java Exception Interview Question Part 3
23 It is possible to throw an Error ?
Yes it is possible to throw an error any Throwable type include Error.
24. Is it Possible throw an object ?
No we can use throw keyword only throwble object otherwise we will get compile time error
Saying Unreachable Statement.
25. What is the purpose of throws key word.
Throws keyword use to propagate the exception.
26.what is difference between throws and thrown?
This Type of question create the confusion in your mind don't confuse there is no terminology of thrown in java.
27 Explain the exception handling keyword?
Exception Handling Key word
¦try
¦catch
¦finally
¦throw
¦throws
28.Which class is the root class Java Exception Hierarchy?
Throwable class is the top class of Exception hierarchy.
29. What is the difference between Exception and Error ?
Exception : recoverable
Error:-these are not caused by our program mostly caused by lack of system resources.These are non recoverable.
30. What is difference between checked and unchecked Exception ?
That Exception Checked by compile Time is called checked exception.Ex.IOException .
The Exception which not checked by Compile time that checked by runtime is called unchecked exception Ex.ArithMaticException /0,RuntimeException;
31 What is difference partially checked and fully checked Exception?
A checked exception is said to be fully checked if and only if all the child class also checked otherwise it is called partially checked exception.
IOexception:-fully checked exception
Exception : are partially checked .
32 What are the customized exception?
Sometime based on your programming required we have to create our own exception such type exception called customize exception.
33.Can You give the name of most common exception occurred in your previous project?
NullPointerException,ArrayIndexOutOfBoundException,StackOverFlowException,ClassCastException,NoClassDefFoundError,etc.
34.Will the finally block executed if there is an exception thrown in try block ?
Yes, the finally block will override the "thrown exception" finally always dominates.
35.Can we catch "Runtime" Exception ?
Yes, you can catch or throw RuntimeException but the compiler will not complain about it since it a "Unchecked Exception".
A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm
Other Top Job Portals
www.Naukri.com
www.MonsterIndia.com
www.TimesJobs.com
Are you looking for a new Job ?
InterviewDot.com - A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Java Interview Question And Answer 35 Java Exception Interview Question Part 3», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.