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
Is list thread safe in java?
Can substring create new object?
What is the purpose of format function?
Is arraylist a class in java?
How do you change an int to a string?
What is udp in java?
Explain numeric promotion?
What is default locale java?
How do you reverse a list?
define polymorphism in java
What is intern method in java?
Explain the difference between runnable and callable interface in java?
What is the purpose of the strictfp keyword?
What do you mean by object?
What does || || mean in math?