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 difference between equals and hashcode method?
Can private method static?
What are the advantages of java?
Can we write method inside a method in java?
What is merge sort in java?
Why is the main method declared static?
what is heap memory?
What does the three dot emoji mean?
Explain about complier design(phases)
What is lambda in java?
What’s meant by anonymous class?
How does map works in java?
What do you mean by local variable and instance variable?
Is java free for commercial?
What are the 3 types of control structures?