try { int x = Integer.parseInt("two"); }
Which could be used to create an appropriate catch block?
C is correct. 'Integer.parseInt' can throw a NumberFormatException, and IllegalArgumentException is its superclass
What is the most important feature of Java?
View answer Workspace Report Error Discuss