
…lease have a look at the picture again. Do you notice the objects which are pointing to each other? iOS developers call them retain cycles. This issue doesn’t exist in the Android world. The “cycles” are removed when there is no path to the GC Root.
…size doesn’t matter. That’s why creating many “alive” unnecessary objects is painful — for instance, autoboxing inside a loop. The GC starts the process, when the memory heap is almost full. So, when you create many unnecessa…
…dn’t be null, and yet, we had ways to handle those cases. Because when you’re dealing with numbers, zero is very often a totally reason…dn’t be null, and yet, we had ways to handle those cases. Because when you’re dealing with numbers, zero is very often a totally reasonable default value.