• Post Reply Bookmark Topic Watch Topic
  • New Topic

System.exit(1);  RSS feed

 
Gaia Nathan
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI! Can anyone out there tell me what System.exit(1); means?
I know that System.exit(0); tells the JVM to quit running the program, but what happens when the number is changed to 1 or 2?
Thanks for your help.
 
Mapraputa Is
Leverager of our synergies
Sheriff
Posts: 10065
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
System.exit() is one of Security Services provided by JVM. When the number is 2, your program will be exited twice - to confuse potential enemies.
Kidding!
Here is official documentaion for System.exit() metod.
But this forum is "is intended for questions and comments about this web site", as the header said . If you have Java-related questions, you can ask them here, for example.

[This message has been edited by Mapraputa Is (edited August 01, 2001).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!