I would declare the exception in the signature of the main method, rather than catching it here and printing it. The effect is the same, but it looks cleaner.