Programmazione:Java/Exception

Da WikiSitech.
Versione del 31 ott 2007 alle 12:21 di Rimondini (discussione | contributi)
(diff) ← Versione meno recente | Versione attuale (diff) | Versione più recente → (diff)
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("");

}