what is the difference between System.exit() and
System.exit(1)?

Answer Posted / balu

A non-zero exit status code, usually indicates abnormal termination. if n != 0, its up to the programmer to apply a meaning to the various n's.

From http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between jdk,jre and jvm?

783


Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me

1570


How do I get 64 bit java?

709


What is the purpose of object oriented programming?

709


What are generic methods?

723


How do I convert a string to an int in java?

778


What is function and its uses?

780


Can a constructor call the constructor of parent class?

779


Is string a class?

739


What is thread pool? How can we create thread pool in java?

832


What is bean? Where it can be used?

830


Which is better 64 bit or 32 bit?

690


What is qualitative variable?

722


What is the name of the java compiler?

766


Explain the features of java?

782