Compare this official documentation on the exit value of a process for Java:
JavaDoc for Process.exitValue
with Microsoft's:
MSDN for Process.exitCode
I am sorry but Java still lags waaaay behind Microsoft when it comes to good API documentation and development support.