Respuesta :

Checked exception must be thrown in the procedure header to avoid an error when reading a file java.

What is Checked exception?

A checked exception exists as a kind of exception that must be either caught or expressed in the method in which it is thrown. In Java, exceptions under Error and Runtime Exception classes exist as unchecked exceptions, everything else under throwable stands checked.

The throws keyword stands used to declare which exceptions can be thrown from a method, while the throw keyword stands used to explicitly throw an exception within a method or block of code. A checked exception exists called a compile time exception. It must be displayed explicitly in the method header and must be generated in the method.

Hence, Checked exception must be thrown in the procedure header to avoid an error when reading a file java.

To learn more about Checked exception refer to:

https://brainly.com/question/13069405

#SPJ4

ACCESS MORE
ACCESS MORE
ACCESS MORE
ACCESS MORE