πŸ“Š JavaScript
Q. What is the purpose of garbage collection?
  • (A) Removes object with many reference
  • (B) Removes object with reference
  • (C) Removes object with invalid reference
  • (D) Removes object with no reference
πŸ’¬ Discuss
βœ… Correct Answer: (D) Removes object with no reference

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.

Explanation by: Mr. Dubey
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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
184
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate