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 we use protected in java?
What is use of super keyword in java?
What types of index data structures can you have in java?
Is class forname reflection?
What is java util concurrentmodificationexception?
What do you mean by constructor?
What is arguments in java?
Does unicode support all languages?
Explain thread life cycle in java?
What do you know about the garbate collector?
Explain about arraylist?
Define a java class.
What is a lightweight component?
Is null a string?
What is collection class in java?