5 What is Java exception handling?



5 What is Java exception handling?..

Answer / hr@tgksolutions.com

In Java, exceptions are objects. When you throw an exception, you throw an object. However, you can’t throw just any object as an exception — only those objects whose classes descend from throwable. Throwable serves as the base class for an entire family of classes, declared in java.lang, that your program can instantiate and throw.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

A class can be a subclass of itself?

2 Answers   Genesis,


Explain where variables are created in memory?

0 Answers  


What is byte value?

0 Answers  


Program to Find the second largest element in an array.

0 Answers   Amazon,


Difference between this() and super() in java ?

0 Answers  


What is the purpose of encapsulation?

0 Answers  


what is multi-tasking

3 Answers   Anand Group, Photon Infotech, Tech Mahindra,


What is the difference between break and continue statements?

0 Answers  


What are the features in java?

0 Answers  


What is a Presistent Object?

0 Answers   InfoAxon Technologies,


What is the difference between the ">>" and " >>>" operators in java?

0 Answers  


. What are the differences between constructor and method of a class in Java?

1 Answers  


Categories