Home > Back-end >  An exception handling problems
An exception handling problems

Time:03-05

Small springboot newcomer, remember Java post said that when a class method statement more throws at the end of XXXX shows that this method might throw an exception call of outer must add try catch to capture and handle exceptions, but I wrote a piece of code using the Integer. The parseInt (" 123 "), I think this method statement throws a NumberFormatException, but in the place call I didn't also add try catch, also compiled past, prawns, please advise is this why
  • Related