Menu
Question Index
...

Which of the following statement(s) is/are correct?

X: In many cases, if a file cannot be opened, a FileNotFoundException is thrown.

Y: FileNotFoundException is a subclass of IOException, so both can be caught with a single catch that catches IOException.


X Only
Y Only
Both are correct
Both are incorrect

Doubts

Problems

Topic: Java I/O Exceptions - I/O Exceptions In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App