you will get the exception if the file is not found, there can be a case that you have not created the file or you have deleted it from that you are reading or there can be other IOException
java.io.IOException
|
|
java.io.FileNotFoundException
as FileNotFoundException is the child of java.io.IOException