what is the result?

Given the code fragment: If the file userguide.txt does not exist, what is the result?

Given the code fragment: If the file userguide.txt does not exist, what is the result?

A.
An empty file iscreated and success is printed

B.
class java.io.FileNotFoundException

C.
class java.io.IOException

D.
class java.lang.Exception

E.
Compilation fails



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Pavel

Pavel

E – missing fr.close();

nk

nk

please see throw in Base class and Derived Class