concept checked exception in category java

This is an excerpt from Manning's book Java SE 11 Programmer I Certification Guide.
What is a checked exception?
A checked exception is an unacceptable condition foreseen by the author of a method but outside their immediate control. For an example, FileNotFoundException is a checked exception. This exception is thrown if the file that the code is trying to access can’t be found. A method, say, readFile(), can declare it to be thrown when it’s unable to access the target file.
A checked exception is a subclass of the class java.lang.Exception, but it’s not a subclass of java.lang.RuntimeException. It’s interesting to note, however, that the class java.lang.RuntimeException itself is a subclass of the class java.lang.Exception.
Exam Tip In this exam, you may have to select which type of reference variable to use to store the object of the thrown checked exception in a handler. To answer such questions correctly, remember that a checked exception subclasses java.lang.Exception but not java.lang.RuntimeException
A checked exception is part of the API and is well documented. For a quick example, here’s the declaration of the constructor of the class java.io.FileInputStream in the Java API:
public FileInputStream(File file) throws FileNotFoundExceptionChecked exceptions are unacceptable conditions that a programmer foresees at the time of writing a method. By declaring these exceptions as checked exceptions, the author of the method makes its users aware of the exceptional conditions that can arise from its use. The user of a method with a checked exception must handle the exceptional condition accordingly.

This is an excerpt from Manning's book OCA Java SE 8 Programmer I Certification Guide.
What is a checked exception?
A checked exception is an unacceptable condition foreseen by the author of a method but outside their immediate control. For an example, FileNotFoundException is a checked exception. This exception is thrown if the file that the code is trying to access can’t be found. A method, say, readFile(), can declare it to be thrown when it’s unable to access the target file.
A checked exception is part of the API and is well documented. For a quick example, here’s the declaration of the constructor of the class java.io.FileInputStream in the Java API:
public FileInputStream(File file) throws FileNotFoundException !@%STYLE%@! {"css":"{\"css\": \"font-weight: bold;\"}","target":"[[{\"line\":1,\"ch\":16},{\"line\":1,\"ch\":44}]]"} !@%STYLE%@!Checked exceptions are unacceptable conditions that a programmer foresees at the time of writing a method. By declaring these exceptions as checked exceptions, the author of the method makes its users aware of the exceptional conditions that can arise from its use. The user of a method with a checked exception must handle the exceptional condition accordingly.
7.4.2. Using a method that throws a checked exception
To use a method that throws a checked exception, you must follow the handle-or-declare rule (section 7.3.2). In the following code, the method main in the class TestRiverRafting won’t compile because it doesn’t handle or declare the checked exception FallInRiverException declared to be thrown by the method crossRapid: