When a method throws a checked exception which of the following are valid responses? code example
Example: how to handle checked exceptions in java
I would either handle or declare. I Declare using THROWS keyword or handle by
using TRY&CATCH block. If I will use it again I would handle it. If it will
occur only once than I would use THROWS keyword