Exam 1: Object-Oriented Programming and Class Hierarchies

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The Javadoc program for Java documentation focuses on text that is enclosed with the delimeters ____________________.

Free
(Short Answer)
4.9/5
(38)
Correct Answer:
Verified

/**, */

You should always override the ____________________ method if you want to represent an object's state.

Free
(Short Answer)
4.8/5
(41)
Correct Answer:
Verified

toString

Which of the following is considered a visibility modifier in Java?

Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
Verified

A

A(n) ____ is an error that is normally not due to programmer error and is beyond the control of the programmer.

(Multiple Choice)
4.9/5
(37)

Method descriptions in an interface are called method ____________________.

(Short Answer)
4.8/5
(38)

The has-a relationship between classes means that one class is a subclass of the other.

(True/False)
4.9/5
(30)

An object that is a RuntimeException is an Exception. The converse is also true.

(True/False)
4.7/5
(32)

The superclass of all Java classes is ____________________.

(Short Answer)
4.9/5
(33)

Each class that implements an interface must provide the complete definition of all methods declared in the interface.

(True/False)
4.9/5
(45)

A(n) ____________________ class is used to store a primitive-type value in an object type.

(Short Answer)
4.8/5
(35)

Exception classes that are subclasses of ____ are unchecked.

(Multiple Choice)
4.8/5
(37)

A Java ____________________ specifies the names, parameters, and return values of the ADT methods without specifying how the methods perform their operations or how the data is internally represented.

(Short Answer)
4.8/5
(38)

The nextInt method will throw a(n) if an integer choice is not entered.

(Short Answer)
4.9/5
(37)

Classes that are not part of a package may access only ________________ members of classes in the package.

(Short Answer)
4.7/5
(42)

A ____________________ is thrown when the token returned by a Scanner next... method does not match the pattern for the expected data type.

(Multiple Choice)
4.9/5
(33)

ArrayIndexOutOfBoundsException is thrown by the JVM when an index value used to access an element in an array is less than zero or greater than or equal to the array's length.

(True/False)
4.7/5
(28)

The ____________________ call in a class constructor invokes the superclass's constructor that has the corresponding argumentList.

(Short Answer)
4.7/5
(36)

____________________ errors occur during program execution .

(Short Answer)
4.9/5
(39)

A data field (or method) with ____ visibility can be accessed in either the class defining it, in any subclass of that class, or any class in the same package.

(Multiple Choice)
4.9/5
(37)

The is-a relationship between classes means that one class has the second class as an attribute.

(True/False)
4.7/5
(37)
Showing 1 - 20 of 41
close modal

Filters

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