What is the relationship between a method?s throws clause
and the exceptions that can be thrown during the method?s
execution?
Answer Posted / ranganathkini
The throws clause of a method basically defines the types of
checked exceptions the method can throw during its
execution. This clause alerts the client code that invokes
the method that it has to have suitable try...catch blocks
to handle the checked execeptions.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
List some oops concepts in java?
Can we define private and protected modifiers for variables in interfaces?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
What is default size of arraylist in java?
What is classname class in java?
What is identifier in java?
what is abstract class in Java?
What is the exception hierarchy in java?
What is a numeric format?
Is java still necessary?
What is a string token?
What does it mean to be immutable?
Can a class be defined inside an interface?
What is difference between == equals () and compareto () method?
What class allows you to read objects directly from a stream in java programming?