Card 10 / 76: Which of the following statements is correct?
A)
A Java class can extend only one superclass.
B)
A Java class can extend multiple superclasses.
C)
A Java class cannot extend any superclasses.
D)
A Java class does not extend superclasses; it implements them.
Answer:
A) A Java class can extend only one superclass.
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
B, C, and D are incorrect.
B is incorrect because a Java class cannot extend multiple superclasses.
C is incorrect because Java can extend a superclass.
D is incorrect because a class will extend a class but implements an interface.
|