Question: What is the purpose of the 'throws' clause in method signature?Answer: The 'throws' clause is used to declare that a method may throw one or more types of exceptions. It is part of the method signature.Example:
|
Is it helpful?
Yes
No
Most helpful rated by users: