Catching checked exceptions

  • 3
Lessons at the secret CodeGym center have taught us that if a ClassNotFoundException or FileNotFoundException are thrown (occur) in a method, then the programmer is simply obligated to indicate them in the method signature. These are checked exceptions. Let's handle them in the handleExceptions method and display them on the screen.
You can't complete this task, because you're not signed in.
  • Popular
  • New
  • Old
You must be signed in to leave a comment
oli blaustromLevel 18 , Luzern
27 February, 12:33
this is quite outdated you can catch multiple exceptions in one block since java 7