What is the difference between System.out.exit(0) and System.exit(1) ?

Author Topic: What is the difference between System.out.exit(0) and System.exit(1) ?  (Read 675 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 153
  • Karma: 0
    • No Addiction
System.exit(0) terminates the program normally. Whereas System.exit(1) terminates the program because of some error encountered in the program.


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
2115 Views
Last post 01-07-2011, 02:42:49
by Psycho
0 Replies
2446 Views
Last post 11-01-2011, 02:51:14
by Walalayo
21 Replies
6325 Views
Last post 06-23-2015, 10:53:36
by Talukdar
26 Replies
7805 Views
Last post 05-04-2016, 01:11:58
by MaryGreen
29 Replies
12786 Views
Last post 01-08-2016, 06:03:12
by trinhkute