Runtime-Exceptions Flashcards

1
Q

ArrayIndexOutOfBoundsException

A

Wird ausgelöst, wenn versucht wird, auf einen ungültigen Index eines Arrays zuzugreifen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

NullPointerException

A

Tritt auf, wenn versucht wird auf ein Objekt zuzugreifen, welches den Wert “null” hat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ArithmeticException

A

Wird bei einem mathematischen Fehler ausgelöst (z.B. einer Division durch 0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

StackOverflowException

A

Tritt auf, wenn der Call-Stack eines Programms überläuft. Dies geschieht typischerweise durch unendliche oder zu tiefe Rekursion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Endlosschleife

A

Tritt auf, wenn die Abbruchbedingung einer Schleife nie erfüllt werden kann

How well did you know this?
1
Not at all
2
3
4
5
Perfectly