• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/3

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

3 Cards in this Set

  • Front
  • Back

Which are true? (Choose all that apply.)


A. "X extends Y" is correct if and only if X is a class and Y is an interface.


B. "X extends Y" is correct if and only if X is an interface and Y is a class.


C. "X extends Y" is correct if X and Y are either both classes or both interfaces.


D. "X extends Y" is correct for all combinations of X and Y being classes and/or interfaces.

☑ C is correct.☐ A is incorrect because classes implement interfaces, they don't extend them. B is incorrectbecause interfaces only "inherit from" other interfaces. D is incorrect based on the precedingrules. (OCA Objective 7.6)

Which are true? (Choose all that apply.) A. "X extends Y" is correct if and only if X is a class and Y is an interface. B. "X extends Y" is correct if and only if X is an interface and Y is a class. C. "X extends Y" is correct if X and Y are either both classes or both interfaces. D. "X extends Y" is correct for all combinations of X and Y being classes and/or interfaces.

☑ C is correct. ☐ A is incorrect because classes implement interfaces, they don't extend them. B is incorrect because interfaces only "inherit from" other interfaces. D is incorrect based on the preceding rules. (OCA Objective 7.6)

Which are true? (Choose all that apply.) A. "X extends Y" is correct if and only if X is a class and Y is an interface. B. "X extends Y" is correct if and only if X is an interface and Y is a class. C. "X extends Y" is correct if X and Y are either both classes or both interfaces. D. "X extends Y" is correct for all combinations of X and Y being classes and/or interfaces.

☑ C is correct. ☐ A is incorrect because classes implement interfaces, they don't extend them. B is incorrect because interfaces only "inherit from" other interfaces. D is incorrect based on the preceding rules. (OCA Objective 7.6)