Shannon Anderson-Rush
Quiz von , erstellt am more than 1 year ago

AP Computer Science Quiz am Java Exception Errors, erstellt von Shannon Anderson-Rush am 25/10/2018.

651
0
0
Shannon Anderson-Rush
Erstellt von Shannon Anderson-Rush vor mehr als 5 Jahre
Schließen

Java Exception Errors

Frage 1 von 4

1

Thrown when an exceptional arithmetic condition has occurred. For example, an integer "divide by zero" throws an instance of this class. is the type of error.

Klicke und ziehe, um den Text zu vervollständigen.

    ArithmeticException
    NullPointerException
    ArrayIndexOutOfBoundsException
    ClassCastException

Erklärung

Frage 2 von 4

1

An Exception that can occur when you try to improperly convert a class from one type to another. is this type of exception.

Klicke und ziehe, um den Text zu vervollständigen.

    ArithmeticException
    NullPointerException
    ArrayIndexOutOfBoundsException
    ClassCastException

Erklärung

Frage 3 von 4

1

Thrown to indicate that an array has been accessed with an illegal index. The index is either negative or greater than or equal to the size of the array. is this type of exception.

Klicke und ziehe, um den Text zu vervollständigen.

    ArithmeticException
    ClassCastException
    ArrayIndexOutOfBoundsException
    NullPointerException

Erklärung

Frage 4 von 4

1

If you try to follow a null reference, you will get this error which tells you that there is no object to reference. is this type of exception.

Klicke und ziehe, um den Text zu vervollständigen.

    NullPointerException
    ArrayIndexOutOfBoundsException
    ArithmeticException
    ClassCastException

Erklärung