Question: QUESTION 7/13 What's wrong with this code? Language: Java 1 2 3 4 public int doThings(String numberString) { try { int i = Integer.parseInt(numberString); }

QUESTION 7/13 What's wrong with this code? Language: Java 1 2 3 4 public int doThings(String numberString) { try { int i = Integer.parseInt(numberString); } catch(Exception e) { System.out.println(e); } return i; 5 6 7 8 } Image not displaying? Integer can't cast to int numberString should be null checked parseInt() can't produce Exception Nothing's wrong i isn't in scope to be returned
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
