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 905 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 159
  • Karma: 0
    • Hot Shaper
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
2218 Views
Last post 01-07-2011, 02:42:49
by Psycho
0 Replies
2631 Views
Last post 11-01-2011, 02:51:14
by Walalayo
20 Replies
6986 Views
Last post 06-23-2015, 10:53:36
by Talukdar
24 Replies
9102 Views
Last post 05-04-2016, 01:11:58
by MaryGreen
28 Replies
14306 Views
Last post 01-08-2016, 06:03:12
by trinhkute