Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/03/2010, 08:51
flashtkd
 
Fecha de Ingreso: agosto-2008
Mensajes: 587
Antigüedad: 15 años, 9 meses
Puntos: 6
System.exit con -1, 1 y 0 cual elegir ?

el System.exit sirve para cerrar la aplicacion. pero usa unos parametros.
que diferencia hay entre el 1, -1 y el 0 del System.exit o sea cuando se usan con los determinados valores.

ejemplo:
System.exit(0);
System.exit(1);
System.exit(-1);