✏️ Explanatory Question
All exceptions except those of type RuntimeException and Error must be explicitly declared in a method’s throws clause.
In other words, checked exceptions must be declared, while unchecked exceptions do not require declaration.
Example:
public void readFile() throws IOException {
// Code that may throw IOException
}