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 stringjoiner ?
What is :: operator in java?
What is a char in java?
Explain the scope or life time of class variables or static variables?
please send me hr interview questions in it industry
Explain 5 features introduced in jdk 1.7?
What is a flag value?
Explain OOPs concept.
Why can we not override static method?
Describe the various concepts related to object oriented programming (oop).
Do you need to import math in java?
Is void a data type?
Which arithmetic operations can result in the throwing of an arithmeticexception?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
Why multiple inheritance is not supported by java?