5 What is Java exception handling?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between call by refrence and call by value?

803


What are static initalizers in java ?

795


What language is java written?

779


Say any two properties in beans?

814


What is difference between length and length() method in java ?

779


What is the maximum size of a string in java?

771


What are the different approaches to implement a function to generate a random number?

816


Is 0 a real number?

796


What are the two environment variables that must be set in order to run any java programs?

738


What is int short for?

738


How do I get the | symbol on my keyboard?

800


What is this () in java?

770


What are the disadvantages of object oriented programming?

878


Which is faster call by value or call by reference?

715


What is difference between local variable and global variable?

733