...
Java provides two options for program termination: Runtime.exit()
(this is equivalent to System.exit()
) and Runtime.halt()
.
Runtime.exit()
Runtime.exit()
is the typical way of exiting a program:
...
...
Java provides two options for program termination: Runtime.exit()
(this is equivalent to System.exit()
) and Runtime.halt()
.
Runtime.exit()
Runtime.exit()
is the typical way of exiting a program:
...