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

what is the difference between the methods sleep() and wait()? : Java thread

0 Answers  


what are synchronized methods and synchronized statements? : Java thread

0 Answers  


What is serialversionuid?

0 Answers  


Do I need java for windows 10?

0 Answers  


What is the difference between sleep and wait in java?

0 Answers  






What is hasnext in java?

0 Answers  


Can we create an object of static class in java?

0 Answers  


What are java annotations?

0 Answers  


How big is a pointer?

0 Answers  


What is the lifetime and scope of a variable?

0 Answers  


Describe 2 different ways to concatenate two strings.

0 Answers   TCS,


How do you square a number in java?

0 Answers  


Categories