ICS2606: Computer Programming II - Exceptions and Error Handling

ICS2606: Computer Programming II - Exceptions and Error Handling

Assessment

Flashcard

•

Computers

•

University

•

Practice Problem

•

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers