Checked Exception

Exception that could happen and require us to handle

private static void checkedExceptionWithThrows() throws FileNotFoundException {
    File file = new File("not_existing_file.txt");
    FileInputStream stream = new FileInputStream(file);
}

In this case, we should handle the case when FileNotFoundException happens.