JAVA Programming :: Objects and Classes - Discussion
Home > JAVA Programming > Objects and Classes > MCQs Questions Discussion
11 / 30
Choose the correct option.
How can you ensure that the memory allocated by an object is free Select the one correct answer.
ABy invoking the free method on the object.
BBy calling system.gc() metho
CBy setting all references to the object to new values (say null).
DGarbage collection cannot be force The programmer cannot force the JVM to free the memory used by an object.
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!