What classes of exceptions, thrown by a throw statement?

Answer Posted / niranjanravi

Syntax for throw is:
throw throwableinstance;
Here the throwableinstance must be an object of type
Throwable or sub-class of Throwable.Simple types such as
int or char as well as non-Throwable types such as String
or object can't be assigned to throw.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why java is a platform independent? Explain

527


How do I get the | symbol on my keyboard?

585


What is enhanced loop in java?

538


What is the use of java?

522


Is string a wrapper class?

505






What is singleton class example?

582


What is class forname used for?

533


What is a local, member and a class variable?

568


What is the method to declare member of a class static?

530


What is an argument java?

526


What are heterogeneous objects?

560


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

487


Why is java called the platform independent programming language?

568


What is use of valueof () in java?

548


How is a structure different from array ?

571