1.

When does a cycle occur during memory leak?(a) No reference occurs(b) Two objects reference(c) One object gets referenced(d) Three object gets referencedThe question was posed to me in a national level competition.I want to ask this question from JavaScript and Memory Leak in portion Caching, Debugging and Animation of JavaScript

Answer»

The correct option is (b) Two objects reference

To ELABORATE: Old versions of Internet EXPLORER COULD not detect cyclic references between DOM NODES and JavaScript code. A cycle happens when two objects reference each other in such a way that both objects retain each other.



Discussion

No Comment Found

Related InterviewSolutions