Checked Exception

An exception the compiler requires code to catch or declare.

What is Checked Exception in Java?

Checked Exception — An exception the compiler requires code to catch or declare.

import java.io.IOException;

class OrderReader {
    String read() throws IOException {
        throw new IOException("Unavailable");
    }
}

Level: Journeyman · More Java terms at this level

Updated