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

What is a stringbuilder?

0 Answers  


How many types of array are there?

0 Answers  


How to find the index of the largest number in an arraylist java?

0 Answers  


Explain jvm, jre, and jdk?

0 Answers  


Explain the available thread states in a high-level?

0 Answers  






What is singleton pattern?

0 Answers  


Is java developer a good career?

0 Answers  


What is default switch case? Give example.

0 Answers  


What is a method vs function?

0 Answers  


Why set do not allow duplicates in java?

0 Answers  


how many design pattern r there? and wht design pattern u use and why ?

5 Answers   HP,


What is meant by event handling?

2 Answers  


Categories