Javatpoint Logo
Javatpoint Logo

Java Process Destroy() Method

The destroy() method is a method of Java Process class. It is an abstract method defined by a Process class. This method is used to terminate or simply kill a process.

Syntax

Parameter

NA

Return

This method does not return a value.

Example 1

Output:

Creating a new process
Process Destroyed

Example 2

Output:

creating a new process
waiting
process destroyed
Next TopicJava Process



Help Others, Please Share

facebook twitter pinterest