What classes of exceptions, thrown by a throw statement?
Answers were Sorted based on User's Feedback
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 |
What does main method?
Why is Java a platform independent language?
Is 0 a prime number?
How much is a java license?
What is advantage of using threads?
What is meant by the value of a variable?
What is r in java?
What does n mean?
How can we handle runtime exceptions? write one sample program? Can we write runtime exceptions beside the throws key word? if yes write sample program?
What is the buffer limit?
Is main is a keyword?
What is a final class in java?