Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Unhandled exception type FileNotFoundException
Unhandled exception type FileNotFoundException
That means, the specific code block where the operation that deals with persisted data MIGHT throw a FileNotFoundException if that file doesn't exists, the compiler tells you that you have to catch such type of exception before running it....
or else, your program might behave badly....
that scenario may relate just like this,
public int logic(Object o){
if(o.equals("hello")
return 0;
}
The sample code will return 0 if the object equals to "hello",
The compiler will then ask you like this,
what if the object is not equal to hello? what value should that method return?