Java Process class

The java.lang.process is an abstract class which provides control to various native processes. The process is generally started by ProcessBuilder.start() and Runtime.exec.

Process class provides various methods for performing different activities like performing input, performing output, waiting for a process to execute, checking the current status of a process or simply destroying a process.

Note: ProcessBuilder.start() and Runtime.getRuntime.exec() methods are used to create a process and returns an instance of subclass of process which means that a typical process can be controlled and information related to it can be obtained.

Java Process Class Methods

Method
Destroy()
exitValue()
isAlive()
waitFor()