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
Can we have multiple classes in single file ?
What is treeset in java collection?
How many decimal places is a double?
What is style and indentation?
What is fail first in java?
Why hashmap is used in java?
What is an object class?
How many types of the indexof method are there for strings?
How do you override a method in java?
What is the difference between == and === javascript?
What are internal and external variables?
Who is the owner of java?
Explain importance of throws keyword in java?
Give a brief description of java socket programming?
What is meant by bytecode?