Exam 11: Advanced Inheritance Concepts

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags
Match each term with the correct statement below.
Premises:
Contains the Object class
Responses:
collision
interface
lambda expression
Correct Answer:
Verified
Premises:
Responses:
Contains the Object class
collision
(Matching)
4.9/5
(44)

A(n) ____ looks much like a class, except that all of its methods (if any) are implicitly public and abstract.

(Multiple Choice)
4.9/5
(39)

When you create classes for others to use, why would you not want to provide the users with your source code in the files with .java extensions?

(Essay)
4.9/5
(36)

Why do many programmers consider multiple inheritance to be a difficult concept?

(Essay)
4.8/5
(40)

Abstract classes and interfaces are similar in that you cannot instantiate concrete objects from either one.

(True/False)
5.0/5
(40)

  An array can be created to reserve space for references to objects. Using the code above, explain how an array of superclass references can hold subclass references. An array can be created to reserve space for references to objects. Using the code above, explain how an array of superclass references can hold subclass references.

(Essay)
4.9/5
(33)
Match each term with the correct statement below.
Premises:
Creates an object that implements a functional interface
Responses:
nonabstract method
hash code
interface
Correct Answer:
Verified
Premises:
Responses:
Creates an object that implements a functional interface
nonabstract method
(Matching)
4.8/5
(35)
Match each term with the correct statement below.
Premises:
Data fields in an interface
Responses:
dynamic method binding
functional interface
collision
Correct Answer:
Verified
Premises:
Responses:
Data fields in an interface
dynamic method binding
(Matching)
4.8/5
(35)
Match each term with the correct statement below.
Premises:
The correct subclass method is attached to the application
Responses:
multiple inheritance
JAR file
virtual classes
Correct Answer:
Verified
Premises:
Responses:
The correct subclass method is attached to the application
multiple inheritance
(Matching)
4.8/5
(47)

When you define a class, if you do not explicitly extend another class, your class is an extension of the ____ class.

(Multiple Choice)
4.9/5
(31)

If Java did not allow you to ____ classes, you would need to create every part of a program from scratch.

(Multiple Choice)
4.7/5
(33)
Match each term with the correct statement below.
Premises:
Contains just one abstract method
Responses:
interface
concrete class
equals() method
Correct Answer:
Verified
Premises:
Responses:
Contains just one abstract method
interface
(Matching)
4.7/5
(40)

What is dynamic method binding and why is it used?

(Essay)
4.9/5
(34)

You sometimes create an abstract class only so you can ____ it to another class.

(Multiple Choice)
4.9/5
(29)

When you assign a variable or constant of one type to a variable of another type, the behavior is called ____.

(Multiple Choice)
4.9/5
(41)

What are the advantages to creating a useful, extendable superclass?

(Essay)
4.8/5
(29)

When you create a useful, extendable superclass, you and other future programmers gain what advantages?

(Essay)
4.9/5
(40)
Match each term with the correct statement below.
Premises:
similar to a Zip file
Responses:
collision
functional interface
concrete class
Correct Answer:
Verified
Premises:
Responses:
similar to a Zip file
collision
(Matching)
4.8/5
(41)
Showing 61 - 78 of 78
close modal

Filters

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