Computer Science, asked by SaiRaghavender9388, 1 year ago

What are covariant return types in Java?

Answers

Answered by hritik38386241
0

Covariant return type refers to return type of an overriding method. ... From Java 5 onwards, we can override a method by changing its return type only by abiding the condition that return type is a subclass of that of overridden method return type.

Similar questions