I'm working on the Java batch program that should exit with different codes based on various conditions. The program will be triggered and monitored by CA7 scheduler which will use exit code to trigger other jobs.
Apparently there are couple of ways to exit:
System.exit(int code)
and
Runtime.getRuntime().exit(int code)
Both of these methods will work, but which one is more appropreate to use?