Exam 11: Exceptions, and Input Output Operations

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

It is possible to code a user-defined exception class.

(True/False)
4.9/5
(36)

FileNotFoundException is related to the Exception class because FileNotFoundException is a subclass of the IOException class, which is a subclass of the Exception class.

(True/False)
4.9/5
(45)

What is the advantage of declaring a constant as static?

(Multiple Choice)
4.7/5
(29)

The print and println methods of the PrintWriter class allow writing basic data types to a file.

(True/False)
4.9/5
(32)

The String "[1,2,3,4]" is a valid JSON-formatted String.

(True/False)
4.8/5
(41)

If you try to use the Scanner constructor to open a file that does not exist, what type of exception will be thrown?

(Multiple Choice)
4.8/5
(35)

What makes an instance variable averageGPA a good candidate for being declared as transient?

(Multiple Choice)
4.9/5
(36)

Which of the following is not using JSON formatting?

(Multiple Choice)
4.9/5
(37)

Exceptions occur at __________.

(Short Answer)
4.8/5
(33)

__________ formatting is made up of two data structures: key/value pairs and arrays.

(Short Answer)
4.7/5
(31)

Large amounts of data reside in which of the following?

(Multiple Choice)
4.9/5
(38)

Lambda expressions are often used with Streams.

(True/False)
4.8/5
(42)

ObjectOutputStream is a:

(Multiple Choice)
4.8/5
(41)

Evaluate what will happen if you run a program that attempts integer division by 0.

(Essay)
4.8/5
(38)

The superclass of all exception classes is the Exception class.

(True/False)
4.7/5
(37)

The URL can be used to access a file located remotely (on the Internet).

(True/False)
4.7/5
(33)

Why is it beneficial to be able to extend an Exception class?

(Multiple Choice)
4.8/5
(41)
Showing 61 - 77 of 77
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)