Java 9’s Immutable Collections Are Easier to Create but Use with Caution

Code is easier to reason about when collections cannot be altered after their creation. Having to keep track of the current state of a collection as it gets passed around from this method to that equates to more mental balls to juggle. Mutating… | Carl … Read more

Similar

New JEP Would Simplify Java Type Variance

A new JEP Candidate proposes to facilitate the handling of type variance in Java. The new proposal, potentially targeting Java 10, would add a means for specifying the default variance in the definition of generic types, different to the current style of ...

Read more »