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 difference between String buffer and String builder?

5 Answers   Benchmark,


What is object data type?

0 Answers  


What is difference between static class and normal class?

0 Answers  


Which package has light weight components?

0 Answers  


What is Collection interface?

1 Answers   Zensar,






Explain methods specific to list interface?

0 Answers  


Explain enumeration in java?

0 Answers  


What is the driver class?

0 Answers  


7) Suppose there is Student class like class student { int age; string name; } We want to store these objects in a HashMap. Do we need to override any methods in Student class? If any which ones and why? what if i just override equals or just hashcode? what will be the results in both the cases?

4 Answers   CSC, Nagarro, RBS,


Difference between the paint() and repaint() methods?

1 Answers  


What is a generic data type?

0 Answers  


What is the final access modifier in java?

0 Answers  


Categories