When a method can throw checked exceptions, it must declare them in its signature with a 'throws' clause. This informs callers about potential exceptions, promoting awareness and handling. For example, `public void connect() throws SQLException` indicates that `SQLException` must be handled by the caller.
Additional Notes
How do exceptions affect method signatures?
Track: Java
Topic: Exceptions
Focus: Checked vs Unchecked Exceptions
Topics:Checked vs Unchecked ExceptionsExceptionsJava