How does the new automatic reference counting mechanism work?

Can someone briefly explain to me how ARC works? I know it’s different from Garbage Collection, but I was just wondering exactly how it worked.

Also, if ARC does what GC does without hindering performance, then why does Java use GC? Why doesn’t it use ARC as well?

6 Answers
6

Leave a Comment