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 is a buffer in java?
What are the three parts of a lambda expression? What is the type of lambda expression?
How can you take string into InputStream?
Why do we need hashset in java?
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
Explain the private protected method modifier?
What is meant by anonymous class?
How to create com object in Java?
Which method cannot be overridden in java?
Write a program to reverse array in place?
What is cr keyboard?
what is the use of thread?Justify it by project point of view