When we use "throws" keyword, how an exception is handles and who handles it for us.
Asked
Active
Viewed 56 times
1
-
This exceptions will be handled in higher level of your application or in application which use library method throws exception – Oleksii Valuiskyi Aug 29 '19 at 18:57
1 Answers
2
When you use a throws
keyword it delegates handling of the Exception to whoever is calling method. They need to handle in a try-catch or re-throw the Exception.

Nicholas Hirras
- 2,592
- 2
- 21
- 28