...
More information about deprecated methods is available in guideline MET15-J. Do not use deprecated or obsolete classes or methods. Also, refer to guideline ERR09-J. Prevent inadvertent Restrict calls to System.exit() or forced shutdownto trusted code only for information on preventing data corruption when the JVM is shut down abruptly.
...