what is difference between throw and throws in exception?
Answer Posted / neema
"throw" is used to handle user-defined exception.
JVM handles the exceptions which are specified by "throws"
Is This Answer Correct ? | 261 Yes | 50 No |
Post New Answer View All Answers
Can you pass functions in java?
What is the importance of finally block in exception handling?
What is the syntax and characteristics of a lambda expression? Explain
What are peerless components in java programming?
Why do we need strings in java?
Can we convert stringbuilder to string in java?
Why object class is super class for every class in java?
Define max and min heap, also the search time of heap.
How many types of java are there?
what is a thread pool in java and why is it used?
What is module in oop?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
What do you mean by append?
What are the types of exceptions?
What is string in java with example?