What is the catch or declare rule for method declarations?

What is the catch or declare rule for method declarations?

Raobm
Views: 945 | Community Opinion: 1

Tags..  Method Declarations  Java Interview  core Java

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 
Gair Main Said..

If a checked exception may be thrown within the body of a method, the method must either catch the
exception or declare it in its throws clause.






What do you think? Add your opinion/answer
*Name
*your opinion/answer: