public abstract int exitValue()Returns the exit value for the subprocess.
Returns: the exit value of the subprocess represented by this Process object. by convention, the value 0 indicates normal termination. Throws: IllegalThreadStateException - if the subprocess represented by this Process object has not yet terminated. 如果结束了就有返回值,否则会抛异常。
public abstract int exitValue()Returns the exit value for the subprocess.
Returns:
the exit value of the subprocess represented by this Process object. by convention, the value 0 indicates normal termination.
Throws:
IllegalThreadStateException - if the subprocess represented by this Process object has not yet terminated.
如果结束了就有返回值,否则会抛异常。