Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

0 Answers  


What is an object in java and how is it created?

0 Answers  


Can a string be null?

0 Answers  


How to restrict a member of a class from inheriting by its sub classes?

0 Answers  


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

0 Answers  


What is the basic concept of java?

0 Answers  


What is Garbage Collection in Java

0 Answers   Wipro,


What is the concept of multithreading?

0 Answers  


what is associative array

1 Answers   Tech Mentro,


What is procedure overloading?

0 Answers  


What's the default access specifier for variables and methods of a class?

0 Answers  


In Java list the methods that can be overridden?

0 Answers   Accenture,


Categories