ICS2606: Computer Programming II - Exceptions and Error Handling

ICS2606: Computer Programming II - Exceptions and Error Handling

Assessment

Flashcard

Computers

University

Hard

Created by

derg boon

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

48 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is an Exception in programming?

Back

An Exception is an object representation of an abnormal condition that arises in a code sequence either at compile time or at runtime.

2.

FLASHCARD QUESTION

Front

What does the Exception object handle?

Back

The Exception object handles unexpected situations like network failure, misspelled or missing filename, and printers that suddenly go offline.

3.

FLASHCARD QUESTION

Front

What is the Exception class a subclass of?

Back

The Exception class is a subclass of the Throwable class.

4.

FLASHCARD QUESTION

Front

What are checked exceptions?

Back

Checked exceptions are recognized by the compiler and consist of all classes that directly inherit from Exception, except for RuntimeException.

5.

FLASHCARD QUESTION

Front

Give examples of checked exceptions.

Back

Examples include IOException, SQLException, and ClassNotFoundException.

6.

FLASHCARD QUESTION

Front

What are unchecked exceptions?

Back

Unchecked exceptions are RuntimeExceptions that are not recognized by the compiler.

7.

FLASHCARD QUESTION

Front

What is a NullPointerException?

Back

A NullPointerException occurs when a program attempts to process a null valued object.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?