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
Is linkedlist thread safe in java?
What is string substring?
What is garbage collection? Can it be forced to run?
What is java beans?
How large is a boolean?
Why unicode is important?
Why is static used?
Why hashcode is used in java?
Can a hashset contain duplicates java?
define the terminology association.
How is hashcode calculated in java?
What is data string?
What are the differences between the constructors and methods?
what are the high-level thread states? : Java thread
Is it possible to use string in the switch case?