Skip to content

Glossary: Java Beyond the Basics

Exit code

Also written: System.exit

The number a program returns when it ends: 0 means success and anything else means trouble. Scripts read it, and System.exit(2) sets it.

Where the book teaches it

Related terms

JARCommand-line arguments