Question
Which of these is NOT allowed in an interface declaration? Select one: a. constant b. abstract function c. class d. instance variable e. another interface
Which of these is NOT allowed in an interface declaration?
Select one:
a. constant
b. abstract function
c. class
d. instance variable
e. another interface
Which of these Java keywords is used in a class that is intentionally not completely implemented?
Select one:
a. abstract
b. partial
c. incomplete
d. unfinished
e. fragment
Which of these locations in a subclass constructor can be used to explicitly call its parent constructor?
Select one:
a. second statement
b. first statement
c. anywhere
d. last statement
e. second to last statement
Which of these would NOT be a use of inheritance?
Select one:
a. to reduce
b. to organize
c. to reuse
d. to specialize
e. to expand
Which of these is NOT a requirement for polymorphism?
Select one:
a. All of these are requirements.
b. A superclass object reference is used to call the overridden method.
c. All participating classes must be in the same class hierarchy.
d. All participating objects must be referenced via a superclass reference.
e. All participating classes must override the method being called.
In a class hierarchy diagram, which of these symbols indicates public access?
Select one:
a. +
b. *
c. p
d. #
e. -
Which of these Java keywords is used to explicitly call a superclass constructor from a subclass constructor?
Select one:
a. parent
b. super
c. prime
d. base
e. construct
Which of these Java keywords is used to establish a class inheritance relationship?
Select one:
a. inherits
b. child
c. extends
d. specializes
e. subclass
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started