Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Forcibly terminates the currently running Java virtual machine. This method never returns normally.
This method should be used with extreme caution. Unlike the exit method, this method does not cause shutdown hooks to be started and does not run uninvoked finalizers if finalization-on-exit has been enabled. If the shutdown sequence has already been initiated then this method does not wait for any running shutdown hooks or finalizers to finish their work.

Differences from C/

...

C++

In contrast with C and C++, Java does not flush unwritten buffered data or close open files when it exits, so programs must do this manually.

...