diferença entre System.exit (0) e System.exit (-1) [duplicado]
Esta pergunta já tem uma resposta aqui:
Diferença no sistema. exit (0), System.exit (-1), System.exit (1) em Java 11 respostasPode-me compartilhar alguma diferença entreSystem.exit(0)
eSystem.exit(-1)
é útil se você explicar com o exempl