Exception when working with numbers

  • 3
  • Locked
Another task about catching exceptions arrived today at the secret CodeGym center. This time, we have to catch an exception and immediately display it on the screen. Don't forget to indicate its type. The exception in question will occur when the following code is executed: int num = Integer.parseInt("XYZ"); System.out.println(num).
You can't complete this task, because you're not signed in.
  • Popular
  • New
  • Old
You must be signed in to leave a comment
This page doesn't have any comments yet