Which of these exception is thrown in cases when the file specified for writing is not found?

Thê Hy

New member
Which of these exception is thrown in cases when the file specified for writing is not found?
A. IOException
B. FileException
C. FileNotFoundException
D. FileInputException
 
Answer: c
Explanation: 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.
 

Tìm kiếm

Back
Top