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
Why java is a platform independent? Explain
How do I get the | symbol on my keyboard?
What is enhanced loop in java?
What is the use of java?
Is string a wrapper class?
What is singleton class example?
What is class forname used for?
What is a local, member and a class variable?
What is the method to declare member of a class static?
What is an argument java?
What are heterogeneous objects?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread
Why is java called the platform independent programming language?
What is use of valueof () in java?
How is a structure different from array ?