Java Object Creation Patterns

Diego Pacheco
1 min readAug 2, 2020

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.

Video

Code

Cheers,

Diego Pacheco

Originally published at http://diego-pacheco.blogspot.com on August 2, 2020.

--

--

Diego Pacheco

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