Home » Interview » Technology

Which is true?

Correct Answer: "X extends Y" is correct if X and Y are either both classes or both interfaces

Explanation:

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.


← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion