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

Is alive in java?

0 Answers  


What are the steps involved to write rmi based programs?

0 Answers  


Does apple use java?

0 Answers  


What is the purpose of file class?

0 Answers  


what is a static block?

4 Answers  


What is matcher in java?

0 Answers  


Difference between local and global transaction ?

1 Answers   Accenture, iFlex,


What is java Applet?

0 Answers   TCS,


How will you get the platform dependent values like line separator, path separator, etc., ?

0 Answers  


what is multi-tasking

3 Answers   Anand Group, Photon Infotech, Tech Mahindra,


what is mean by method signature?

5 Answers   Satyam,


What is prefix of a string?

0 Answers  


Categories