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 synchronized methods and synchronized statements? : Java thread
What is static in java?
What is the use of volatile in java?
What are variable names?
What are the approaches that you will follow for making a program very efficient?
How java is similar to c?
Is void a wrapper class?
what is meant by abstract class?
What are heap memory and stack memory and what are memory tables.
What is the purpose of return statement?
What are three types of loops in java?
Where to store local variables?
What is main string [] args?
What is the purpose of file class?
Why is it called boolean?