What is the relationship between a method?s throws clause
and the exceptions that can be thrown during the method?s
execution?
Answer Posted / chinu
Throws is used in the method definition to mark what all
exceptions the method can throw, so that the code that
accesses the method can give the corresponding catch block
for that exception.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is bufferedreader in java?
What is the final keyword denotes?
Explain an intermediate language?
Differentiate between stringbuffer and string?
What is thread life cycle?
How do you replace a string in java?
What are different types of arrays?
How do you remove all elements from an arraylist in java?
What are data types in oop?
What are the 4 versions of java?
What are parsers? Dom vs sax parser.
Is map ordered in java?
What is the reflection?
What happens to the Exception object after handling an exception?
What is enhanced loop in java?