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
What are the advantages of encapsulation in java?
What are the benefits of operations in java?
What do you understand by classes in java?
Which is better arraylist or vector?
Why doesn't the java library use a randomized version of quicksort?
What is lastindexof in java?
What is an argument in java?
If a method is declared as protected, where may the method be accessed in java programming?
Can we have more than one package statement in the source file?
What the difference is between execute, execute Query, execute Update?
write a program that list all permutations of ABCDEF in which A appears before B?
Differences between external iteration and internal iteration?
What is hashset in java?
When object is created and destroyed?
How do you override a method in java?