r/javahelp • • Mar 17 '26

why some exception need catch some not?

im a noobied in java recently i wondering why some throws-exception method like File#createNewFile() need a catch block but Interger.parseInt(String) no need a catch block. could any body anwser it?

5 Upvotes

14 comments sorted by