Programmazione:Java/Exception

Da WikiSitech.
Vai alla navigazioneVai alla ricerca

Exception

Usare eccezioni checked per essere sicuro che qualcuno le intercetti

void function() {

  throw new RuntimeException("");

}

void function() throws CheckedException{

  throw new CheckedException("");

}