Because FileNotFoundException is a checked Exception which means in Java that you have to do something with them when they occur.
You have two options to handle checked exceptions:
catch them and do something with them try{
} catch(FileNotFoundException e) { //do something with e}
re-throw them, which means add the line throws FileNotFoundException add the end of your method signature