Skip to content
Advertisement

Tag: throws

Java checked exceptions

I’m trying to understand checked exceptions in Java and have the following query. Is the following correct: If a method has the potential to throw a checked exception, of any type, that exception must either be declared using the throws keyword, or caught by the respective method. If the above is correct, does this mean that I need to understand

Advertisement