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



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

Answer / 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

More Core Java Interview Questions

What is an object?s lock? Give name of object?s that have locks?

2 Answers  


What collections you have worked on? Internal working of Hashmap?

1 Answers   Bravura Solutions,


Can multiple catch statements be used in exceptions ?

6 Answers   Wipro,


how to java plateform independent?

5 Answers   TCS,


What is a instance variable in java?

0 Answers  






What are the library functions in java?

0 Answers  


How does sublist works in java?

0 Answers  


What are different types of states exist for a thread?

0 Answers  


Java.util.regex consists of which classes?

0 Answers  


What is the benefit of inner classes in java?

0 Answers  


What is the use join() in Threads ?

5 Answers   HCL,


what is the main class of all the classes

5 Answers   Photon,


Categories