Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What is the purpose of garbage collection?

  2. A.

     Removes object with many reference

    B.

     Removes object with reference

    C.

     Removes object with invalid reference

    D.

     Removes object with no reference

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    When the interpreter sees an object in the heap with no object references, it removes that object from the heap. This is called garbage collection.


Be The First To Comment