+ 2

Garbage collector in java

Why we explicitly call garbage collector when java calls it automatically?

9th Jun 2018, 7:27 PM
harshit
harshit - avatar
4 Respostas
+ 3
Are you asking why we call gc in Java explicitly? Because I don't
9th Jun 2018, 7:29 PM
BlazingMagpie
BlazingMagpie - avatar
+ 2
sometimes when developing a java program you might notice a stutter that could be caused by the gc, calling the gc at better points in time might help with that in certain circumstances but almost always there is no reason to call the garbage collector
9th Jun 2018, 9:37 PM
Max
Max - avatar
+ 1
yes
9th Jun 2018, 7:30 PM
harshit
harshit - avatar
+ 1
Well I don't. I don't know why others would, either. Did someone you know tell you to GC explicitly?
9th Jun 2018, 7:33 PM
BlazingMagpie
BlazingMagpie - avatar