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

public class Test{
      public static void main(String args[]){
            try{
                  int a = Integer.parseInt("four");
            }
      }
}

Which exception could be handled by the catch block for above?

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Raj Grover
Raj Grover 9 years ago
but we are using try without catch... so it should throw compilation exception that (try without catch)