Comparing Map.of() and new HashMap() in Java
Discussion of the use of Map.of() and new HashMap() in Java, the difference between them, and the benefits of using Map.of().
Every article on foojay.io, newest first: OpenJDK, the JVM, Java tooling and the ecosystem around them, written by the Java community.
2393 articles · 13,897,637 views.
RSS feed
A N M Bazlur Rahman
26,634 viewsDiscussion of the use of Map.of() and new HashMap() in Java, the difference between them, and the benefits of using Map.of().

Peter Lawrey
4,332 viewsMapping large areas of memory avoids having to know in advance how much memory we need or having to resize the memory mappings while in use.

Bo Zhang
7,871 viewsThis is the second article of the series "How Gradle Works". In this article, we'll explain what happens inside the Gradle Daemon JVM.

A N M Bazlur Rahman
5,896 viewsDiscover insights from Geertjan Wielenga, a Java Champion and developer advocate, on how to succeed in the software industry and the …

Helen Scott
4,122 viewsStarting in a new team can be daunting. You have to learn All The Things, one of which is your IDE! So, how can you best learn IntelliJ …

Shai Almog
5,236 viewsImproving our DevOps skills can help us become better developers, team mates, and managers. Learn DevOps principles and advanced git!

Frank Delporte
23,668 viewsIn this article, we want to look into some false assumptions and outdated ideas about Java based on early versions.

Fawaz Ghali
4,456 viewsQuickly learn how to connect Hazelcast Viridian to a Confluent Cloud Kafka cluster, and more!

Denis Magda
17,170 viewsExplore how to best use compact Java Records as Data Transfer Objects (DTOs) for database and API calls in Spring Boot 3 with Hibernate 6.

Most inter-systems communication components that use REST serialize their payload in JSON. As of now, JSON lacks a widely-used schema …