Frage zu Runtimeexception

Frage stellen

Fragen und Antworten zum Thema Runtimeexception

Fängt ein try-catch-Block mit 'catch (Exception e)' in Java auch RuntimeExceptions ab?

Ja, auch RuntimeExceptions werden von einem catch (Exception e)-Block in Java behandelt. In Java ist RuntimeException eine Unterklasse von Exception. Das bedeutet, dass ein catch (Exception e)-Block...