Skip to Main Content
Java – kurz & gut, 3rd Edition
book

Java – kurz & gut, 3rd Edition

by Patricia Liguori, Robert Liguori
March 2018
Intermediate to advanced content levelIntermediate to advanced
276 pages
4h 17m
German
dpunkt
Content preview from Java – kurz & gut, 3rd Edition

KAPITEL 7

Exception-Handling

Eine Exception ist eine ungewöhnliche Bedingung, die den Kontrollfluss ändert oder unterbricht. Java bietet ein eingebautes Exception-Handling zur Verarbeitung solcher Bedingungen. Exception-Handling sollte nicht Teil des normalen Programmablaufs sein.

Die Exception-Hierarchie

Wie Abbildung 7-1 zeigt, erben alle Exceptions und Errors von der Klasse Throwable, die von der Klasse Object erbt.

image

Abbildung 7-1: Die Exception-Hierarchie

Checked-/Unchecked-Exceptions und Errors

Es gibt drei Kategorien von Exceptions und Errors: Checked-Exceptions (geprüfte Exceptions), Unchecked-Exceptions (ungeprüfte Exceptions) und Errors ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java EE kurz & gut

Java EE kurz & gut

Arun Gupta

Publisher Resources

ISBN: 9781492067344