But you can do it if it makes sense.

Have a read of The Catch or Specify Requirement in Oracle's Tutorial. It describes checked exceptions, errors and runtime exceptions. They are different...