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 is regex in java?
What are class types in java?
What is a platform?
What is the effect of keeping a constructor private?
What is the difference between a checked and an unchecked exception?
Explain the use of javap tool.
What is the default size of arraylist in java?
How to reverse string in java?
what is anonymous class in java?
how to write a server program and sending the mails to the server using smtp protocol please help me
Explain about narrowing conversion in java?
v-model life cycle
Can we use a default constructor of a class even if an explicit constructor is defined?
What does main method?
Tell me are there implementations for sorting and searching in the java libarary?