AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Java and Reference Counting
The dominant paradigm in C++ programming is manual memory management using the new and delete keywords. Java came about as kind of a C++++ with a built-in garbage collector. The idea with reference counting is each object has what's called a reference count. When we want to increase the count, we generally call that a retain call. And when we want to decrease the count, We usually call that a release call.