Programming Language › Java Exception MCQ › Question #2324
Single Choice Not Set

Q
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?

ID: #2324 Java Exception MCQ 956 views
Question Info
#2324Q ID
Not SetDifficulty
Java Exception MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A IllegalStateException ✔ ✖
  • B NumberFormatException ✔ ✖
  • C ClassCastException ✔ ✖
  • D ArrayIndexOutOfBoundsException ✔ ✖
Correct Answer

Explanation

NumberFormatException
Today: 0 answered · 0 correct
Save progress
Free account

Want to remember what you got wrong?

Create a free account in seconds to track your score, revisit mistakes and continue Programming Language where you left off.

  • Save your progress & streak
  • Topic-wise quizzes & scores
  • Bookmark tricky questions
  • Printable MCQ sets
Practice smarterFree account · save progress
Sign up free

Share This Question

Challenge a friend or share with your study group.