java1junio exception
TRANSCRIPT
![Page 1: Java1junio exception](https://reader035.vdocumento.com/reader035/viewer/2022071723/55c1759fbb61eb7b4a8b477f/html5/thumbnails/1.jpg)
THROWABLE
ERROR
Deriva de la clase:
Relacionada con errores de compilación.
Son irrecuperables…
No dependen del programador, ni debe preocuparse de capturarlos, ni tratarlos.
![Page 2: Java1junio exception](https://reader035.vdocumento.com/reader035/viewer/2022071723/55c1759fbb61eb7b4a8b477f/html5/thumbnails/2.jpg)
Deriva de la clase:THROWABLE
EXCEPTION
IOException.
FileNotFoundException.
MalformedURLException.
Son excepciones explicitas:
Obliga a tenerlas en cuenta y chequear si se producen.
Estas dos son ejemplos de tales excepciones.
![Page 3: Java1junio exception](https://reader035.vdocumento.com/reader035/viewer/2022071723/55c1759fbb61eb7b4a8b477f/html5/thumbnails/3.jpg)
THROWABLE Deriva de la clase:
EXCEPTION
RuntimeException
Son Excepciones implícitas.
NullPointerExcepction.IndexOutofBoundsException.
Muy frecuentes, relacionadas con errores de programación.
Estas dos, son ejemplos de tales excepciones.
![Page 4: Java1junio exception](https://reader035.vdocumento.com/reader035/viewer/2022071723/55c1759fbb61eb7b4a8b477f/html5/thumbnails/4.jpg)
THROWABLE
TRY
Deriva de la clase:
El código dentro de TRY esta vigilado.
Para excepciones que no pertenecen a lasRunTimeException.
Si se produce una situaciónanormal, se lanza una excepciónel control pasa al bloque catch.
CATCH
FINALLY
END TRY
El bloque finally esopcional.
Termina la excepción.
![Page 5: Java1junio exception](https://reader035.vdocumento.com/reader035/viewer/2022071723/55c1759fbb61eb7b4a8b477f/html5/thumbnails/5.jpg)
![Page 6: Java1junio exception](https://reader035.vdocumento.com/reader035/viewer/2022071723/55c1759fbb61eb7b4a8b477f/html5/thumbnails/6.jpg)
![Page 7: Java1junio exception](https://reader035.vdocumento.com/reader035/viewer/2022071723/55c1759fbb61eb7b4a8b477f/html5/thumbnails/7.jpg)
![Page 8: Java1junio exception](https://reader035.vdocumento.com/reader035/viewer/2022071723/55c1759fbb61eb7b4a8b477f/html5/thumbnails/8.jpg)
![Page 9: Java1junio exception](https://reader035.vdocumento.com/reader035/viewer/2022071723/55c1759fbb61eb7b4a8b477f/html5/thumbnails/9.jpg)
![Page 10: Java1junio exception](https://reader035.vdocumento.com/reader035/viewer/2022071723/55c1759fbb61eb7b4a8b477f/html5/thumbnails/10.jpg)
![Page 11: Java1junio exception](https://reader035.vdocumento.com/reader035/viewer/2022071723/55c1759fbb61eb7b4a8b477f/html5/thumbnails/11.jpg)
![Page 12: Java1junio exception](https://reader035.vdocumento.com/reader035/viewer/2022071723/55c1759fbb61eb7b4a8b477f/html5/thumbnails/12.jpg)
![Page 13: Java1junio exception](https://reader035.vdocumento.com/reader035/viewer/2022071723/55c1759fbb61eb7b4a8b477f/html5/thumbnails/13.jpg)
![Page 14: Java1junio exception](https://reader035.vdocumento.com/reader035/viewer/2022071723/55c1759fbb61eb7b4a8b477f/html5/thumbnails/14.jpg)
![Page 15: Java1junio exception](https://reader035.vdocumento.com/reader035/viewer/2022071723/55c1759fbb61eb7b4a8b477f/html5/thumbnails/15.jpg)
![Page 16: Java1junio exception](https://reader035.vdocumento.com/reader035/viewer/2022071723/55c1759fbb61eb7b4a8b477f/html5/thumbnails/16.jpg)