Java Object Creation Patterns

Image for post
Image for post

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)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store