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
Is null keyword in java?
What is the collections api?
Can we nested try statements in java?
why Java does not support multiple inheritances?
What is tostring () method?
What is runtime polymorphism or dynamic method dispatch?
What is printwriter in java?
What is meant by data hiding/encapsulation?
why doesn't java run on all platforms?
Which is bigger float or double?
What is difference between classpath and path variables in java?
Objects or references which of them gets garbage collected?
Can java cast null?
What are the two ways to create a thread?
Explain hashset and its features?