-
Which of these exception is thrown in cases when the file specified for writing is not found?
-
- FileInputException
- FileNotFoundException
- FileException
- IOException
- None of these
Correct Option: B
In cases when the file specified is not found, then FileNotFoundException is thrown by java run-time system, earlier versions of java used to throw IOException but after Java 2.0 they throw FileNotFoundException.