Which of the following statements are true? 1)The automatic garbage collection of th jvm prevents programs from every running out of memory 2)A program can suggest that garbage collection be performed but not force it. 3)Garbage Collection is platform independent 4)An object eligible for garbage collection when all references denoting it are set to null.
hi GaneshKumar, Garbage Collection in java is Platform dependent because there are many Garbage Collection algorithms like Mark and Sweep etc. it depends on the OS which GC Algorithm it uses. So GC is Platform Dependent