Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: What is the difference between these two?

  1. #1
    Junior Member
    Join Date
    Aug 2013
    Location
    Ghaziabad
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default What is the difference between these two?

    What is the difference between these two?....both will happen abnormal termination na...then wat is the differnce in b/n

    System.exit(0);

    System.exit(1);


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: What is the difference between these two?

    Here's the StackOverflow answer, but there are several other resources on the web available to learn even more about the System.exit() statement.

Similar Threads

  1. Difference ++j and J++
    By rayan2004 in forum Loops & Control Statements
    Replies: 4
    Last Post: December 4th, 2012, 01:42 AM
  2. What is the difference?
    By soul_samir in forum Java Theory & Questions
    Replies: 1
    Last Post: February 11th, 2012, 03:08 PM
  3. Difference between jboss 4.x,5.x and 6.x
    By vairam in forum Member Introductions
    Replies: 1
    Last Post: May 3rd, 2011, 09:49 AM
  4. [SOLVED] Difference between == and equals.
    By goldest in forum What's Wrong With My Code?
    Replies: 9
    Last Post: December 18th, 2010, 03:15 PM
  5. Need to know this difference
    By arvind in forum Java Theory & Questions
    Replies: 2
    Last Post: January 19th, 2010, 06:24 AM

Tags for this Thread