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
What are unchecked exceptions in java?
What is a finally block? Is there a case when finally will not execute?
What is outofmemoryerror in java?
What is args length in java?
Can we execute a program without main() method?
Explain importance of finally block in java?
What modifiers may be used with a top-level class?
Can the garbage collection be forced by any means?
How to check if a list is sorted in java?
How to find the index of the largest number in an arraylist java?
What is the use of isempty in java?
What does += mean coding?
Is simpledateformat safe to use in the multithreaded program?
What is composition in java?
What are the different types of constructor?