Java – garbage collection in Android (done manually)
I have a strange question I know that garbage collectors have their own limitations If assigned
So my question is, is it a good programming practice to call the mandatory garbage collector (system. GC ()) at the end of each activity?
to update
Everyone is saying, call system GC () does no good at all Then I wonder why it's here DVM will decide when to run the garbage collector What does that method need?
Update 2
Thank the community for helping me But to be honest, I learned about the real wave of garbage collection from this link Java performance optimization
Solution
It is not a good programming practice to call the mandatory garbage collector (system. GC ()) at the end of each activity
Because it is useless, only DVM decides when to call, although you call