What is significance of the integer value in System.exit( int value );

Questions by HSridhar   answers by HSridhar

Showing Answers 1 - 4 of 4 Answers

Pankaj Mishra

  • Jun 21st, 2006
 

System.exit(0) function is used for terminating the running program.Integer which we passes in the function tells to the operating system how the running program terminates.if we pass 0 then OS understands that program has terminated successfully..any other integer represent other messages like some error condition,short memory etc.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions