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

How many bytes is a char in java?

0 Answers  


Why should we create an object? what is a need of it? Apart from access members of a class i want what is a need of object what does it contain?? In normal class to access any member of thaht class we create object where as for static class we access its members using class name. what is a difference between them... thanks in advance.

1 Answers  


what is collections in java?

4 Answers  


Is map ordered in java?

0 Answers  


Write a program to solve producer consumer problem in java?

0 Answers  






What super () does in java?

0 Answers  


how to use crystal reports in java

2 Answers  


Where to store local variables?

0 Answers   Aspiring Minds,


Why do we override tostring method in java?

0 Answers  


Why is singleton instance static?

0 Answers  


If a method is declared as protected, where may the method be accessed in java programming?

0 Answers  


What is a module function?

0 Answers  


Categories