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
Is a case study a method or methodology?
What is the covariant return type?
Can a vector contain heterogenous objects?
What is nullpointerexception?
What is better - 'bit-shift a value' or 'multiply by 2'?
What is double parsedouble in java?
How a variable is stored in memory?
a thread is runnable, how does that work? : Java thread
Is java util regex pattern thread safe?
When should I use stringbuffer?
What is nextline method in java?
When will you define a method as static?
What is the difference between a switch statement and an if statement?
What is jee6?
What is callable java?