Showing posts with label Covariant. Show all posts
Showing posts with label Covariant. Show all posts

What is Covariant return types in Java?

While overriding the methods in subclass name, arguments, and return type must me same as super class method until before Java 1.5. Overriding method is said to be invariant with respect to argument types...