When throws keyword is used?

Java Programming Language >   Fundamentals of Object-Oriented Programming >   Object-Oriented Paradigm  

Short Question

542


Answer:

If a method does not handle a checked exception, the method must declare it using the throwskeyword. The throws keyword appears at the end of a method's signature.


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.