Collections have seen a lot of changes in the past couple of JDKs. Let's look at how they've improved in Java 9 and Java 10 and what the new ways of creating immutable ones are.
#java #java9 #java10 #collections #junior #middle
https://dzone.com/articles/java-collections-are-evolving
#java #java9 #java10 #collections #junior #middle
https://dzone.com/articles/java-collections-are-evolving
dzone.com
Java Collections Are Evolving - DZone Java
Learn how to create factory methods for Collections as well as create immutable copies of Collections with the changes introduced in Java 9 and Java 10.
Using var you can now use anonymous classes as a replacement of named classes. This is convenient if you want to encapsulate interactions with instances of this class and data attached to them inside a method.
#java #java10 #middle #senior
https://dzone.com/articles/how-java-10-changes-the-way-we-use-anonymous-inner
#java #java10 #middle #senior
https://dzone.com/articles/how-java-10-changes-the-way-we-use-anonymous-inner
dzone.com
How Java 10 Changes the way we Use Anonymous Inner Classes - DZone Java
In this post, we take a look at the changes Java 10 brought to how we use anonymous inner classes, looking specifically at polymorphism and anonymous classes.