JAVA: Interfaces & Inheritance

JAVA: Interfaces & Inheritance

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Shawn Kenner

Used 65+ times

FREE Resource

Student preview

quiz-placeholder

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When related classes have the same ____, they can be used interchangeably in a program.
value
definition
interface
hierarchy

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If more than one class implements an interface, its methods are ____.
aggregated
public
dependent
polymorphic

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When the element type of an array is a(n) ____ or interface, objects of those types or any subtype can be directly inserted into the array.
primitive
concrete
abstract
reference

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Methods in a subclass can be related to methods in a superclass in all of the following ways EXCEPT ____.
implementation of a concrete method.
extension
overriding
finality

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The relationship that allows an object of one class to send a message to an object of another class is called ____.
inheritance
superclass
dependency
aggregation

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The ____ process uses the clone message to obtain copies.
duplication
deep copying
aliasing
overriding

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A(n) ____________________ method cannot be overridden by a subclass.
final
private
public
static

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?