How do Immutable Objects help decrease overhead due to Garbage Collection?
问题 I am a newb, and I have read about Garbage Collection from the first two answers here. Now justifying the use of Immutable Objects even if the programmer has to create new objects, as compared to using existing objects (in multi-threaded applications), this tutorial says that the cost of object creation is made up for by the decrease in memory overhead due to garbage collection , and the elimination of code to protect mutable objects from threads interference and memory consistency errors: