ExamVeda
Login
Home
This question belongs to Java Program Exceptions
Exceptions
?

try{
      File f = new File("a.txt");
}catch(Exception e){
}catch(IOException io){
}

Is this code create new file name a.txt ?

Answer & Solution
Correct Answer: Option C

IOException is unreachable to compiler because all exception is going to catch by Exception block.

Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.