
03/03/2010, 08:51
|
| | Fecha de Ingreso: agosto-2008
Mensajes: 587
Antigüedad: 16 años, 6 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); |