Assigning a subclass reference to a superclass variable is safe ________.

a. because the subclass object has an object of its superclass.
b. because the subclass object is an object of its superclass.
c. only when the superclass is abstract.
d. only when the superclass is concrete.


b. because the subclass object is an object of its superclass.

Computer Science & Information Technology

You might also like to view...

The __________ encryption scheme is designed to enable encryption by a user's public key with decryption by the user's private key.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Suppose a method p has the following heading:

``` public static int[][] p() ``` What return statement may be used in p()? a. return 1; b. return {1, 2, 3}; c. return int[]{1, 2, 3}; d. return new int[]{1, 2, 3}; e. return new int[][]{{1, 2, 3}, {2, 4, 5}};

Computer Science & Information Technology

The accompanying figure represents the ____ alpha channel.

A. Background B. Dark Gray C. Light Gray D. Composite

Computer Science & Information Technology

Strong passwords are at least five characters long.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology