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
What is meant by method?
Explain some best practices you would apply while using collection in java?
Explain about the dynamic behavior of core java?
What are different types of references?
How many threads does a core java have?
What is pass by value?
What is thread count in java?
What are the advantages and disadvantages of object cloning?
What is nextline method in java?
What is the difference between an interface and an abstract class?
What is float in java?
What is procedure writing?
Can we sort list in java?
What are data structures in java?
How do you read a char in java?