Swift vs. Kotlin — the differences in memory management

Swift vs. Kotlin — the differences in memory management

6 years ago
Anonymous $cyhBy-qkd5

https://blog.indoorway.com/swift-vs-kotlin-the-differences-in-memory-management-860828edf8

In my previous article, which you can find here, I mentioned memory management in Swift and Kotlin. I left you alone with this problem, but now I want to make it up to you by describing this difference.

The Garbage Collection process, also known as automatic memory management, is the automatic recycling of dynamically allocated memory, as explained here. Still don’t get it? Ok, so let me explain this using some pictures and a simplified example.