Difference between throw and throws?
Java Programming Language > Managing Errors and Exception > Benefits of OOP
617
Answer:
It includes:
Throw is used to trigger an exception where as throws is used in declaration of exception.
Without throws, Checked exception cannot be handled where as checked exception can be propagated with throws.
This Particular section is dedicated to Question & Answer only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.