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
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
What is ctrl m character?
What is the default execution method in java?
How does varargs work in java?
Explain the use of javap tool.
State the merge-sort principle and its time complexity.
Can you inherit a constructor java?
How big is a 32 bit integer?
What is local declaration?
how to create multithreaded program? : Java thread
What is a line separator in java?
What are internal and external variables?
What is gc()?
What is java util collection?
Can a class have multiple superclasses?