
JAVA: Interfaces & Inheritance
Authored by Shawn Kenner
Computers
9th - 12th Grade
Used 68+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?