what is difference between throw and throws in exception?
Answer Posted / suman
"throw" is used to handle user-defined exception.
JVM handles the exceptions which are specified by "throws"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which is fastest collection in java?
What is a treeset in java?
Is static a keyword in java?
Can we have multiple classes in a single file?
Tell us something about set interface.
Write a program in java to find the maximum and minimum value node from a circular linked list.
What does microservices mean?
How do you reverse sort a list in java?
How can an exception be thrown manually by a programmer?
How do you find the absolute value?
Why is the singleton pattern considered to be an anti pattern?
What is meant by overloading?
Is boolean a wrapper class in java?
Difference between association, composition and aggregation?
What is the difference between the prefix and postfix forms of the ++ operator?