Java Object Creation Patterns

Java is an old language. 25 years now. Java has several limitations and issues however java is the robust and pretty well-established solution for backend, databases, Caches, Search Engineers, IoT, and much more. Today I want to share some patterns about object creation. I highly recommend you read Effective Java book, which was a huge inspiration for this blog post. So I want to show you guys some useful patterns like Static Factories, Builder, Singletons and Immutable Objects. So I made a quick video with code, let’s get started.




Diego Pacheco

Originally published at on August 2, 2020.

Brazilian, Software Architect, SWE(Java, Scala, Rust, Go) SOA & DevOps expert, Author. Working with EKS/K8S. (Opinions on my own)