java.io.File file = new java.io.File("student.txt");

I think it doesn't because it'd be kind of impossible for "fileNotFoundException" to be thrown considering that you're creating the file....