Top OOPS concept interview questions to get hired Top OOP concepts | Page 5
What is covariant technique superseding in Java?
In covariant technique abrogating, the superseding strategy can restore
the subclass of the article returned by unique or superseded strategy.
This idea was presented in Java 1.5 (Tiger) adaptation and it's
extremely useful in the event that unique technique is returning general
sort like Object class, since, at that point by utilizing covariant strategy
abrogating you can return increasingly reasonable item and anticipate
customer side sort throwing. One of the viable utilization of this idea is in
when you abrogate the clone() technique in Java.
To know more OOPS concepts, you may visit our website.
https://www.exltech.in/