A simple java object especially (E.g. model objects) can be freed by garbage collector IF other objects has no reference to it.
If I were you, don't trust too much that garbage collector because there are some objects that you must free, one of them is the Bitmap
objects
Bitmap
s eat more RAM in your android app.
Bitmap b = createLargeBitmap();
Bitmap b2 = b;
If you remove all references to that object and let garbage collector kill it
b = null;
b2 = null;
you might get a memory leak or OutOfMemory
error.
So you need to call recycle()
to fully freed the bitmap.
b.recycle();
b = null;
b2 = null;
// Sorry for my wrong grammar :)