If you want to log the exception, it is more appropriate to use some logging framework (like Log4j) and use
log.error("Ops!", e);
The benefit is the logging framework logs to a correct log file on server. The e.printStackTrace()
writes just to the System.err
.