Summary
This chapter focused on strategic object creation and immutability, two closely related and equally important topics. We looked at various aspects of these topics to help improve the performance of our Java applications. Specifically, we looked at minimizing object creation, object immutability, garbage collection, and design patterns. You should now have a better understanding and deep appreciation for the importance of strategic object creation, as well as its best practices and implementation strategies. You should also have a firm grasp of the concept of object immutability.
In the next chapter, String Objects, we will take a deeper look into string objects while covering topics such as proper string pooling, lazy initialization, and string operation strategies.