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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!