Example usage for java.lang Runtime exit

List of usage examples for java.lang Runtime exit

Introduction

In this page you can find the example usage for java.lang Runtime exit.

Prototype

public void exit(int status) 

Source Link

Document

Terminates the currently running Java virtual machine by initiating its shutdown sequence.

Usage

From source file:Main.java

public static void main(String[] args) {

    // cause the program to exit
    Runtime runTime = Runtime.getRuntime();
    runTime.exit(0);

}