Covariance and contravariance rules in Java.md 469 B


title: Covariance and contravariance rules in Java date: 2020-10-22 16:06:46 categories: [programming] tags: [java]

authors: sedlav

This post is a go-to quick reference for exactly how covariance and contravariance work in Java. Different programming languages do this in different ways, so sometimes it can be tricky to switch between languages and keep the rules straight.

Link