Java Quickie: Cheaper Object Creation

In this quickie you will learn how cheaper object creation works in java and why you should use it. So quick, learn how to!

Creating objects in java is expensive. Expensive meaning it costs a lot of ressources. Not money šŸ˜‰

With lazy initializationĀ  you can optimize the process and thus optimize performance. It might not work under certain conditions, though.

This makes your application launch quicker and is a resource conscious method.