The Java Developers Almanac 1.4


Order this book from Amazon.

   
Home > List of Packages > java.lang  [58 examples]

e49. Terminating the Application

    // No errors
    int errorCode = 0;
    
    // An error occurred
    errorCode = -1;
    
    // Terminate
    System.exit(errorCode);

 Related Examples
e48. The Quintessential Java Application
e50. Determining When the Application Is About to Exit
e51. Computing Elapsed Time
e52. Loading Native Code
e53. Implementing a Class That Can Be Sorted
e54. Redirecting Standard Output, and Error
e55. Getting the Size of the Heap

See also: Arrays    Assertions    Classes    Commands    Numbers    Objects    Strings    System Properties    Threads   


© 2002 Addison-Wesley.