1.

When does a memory leak happen?(a) Browser doesn’t release memory from objects unnecessary(b) Browser releases too many memories(c) Browser releases memory iteratively(d) Browser releases memory quicklyI got this question in quiz.This intriguing question comes from JavaScript and Memory Leak in division Caching, Debugging and Animation of JavaScript

Answer»

Right ANSWER is (a) Browser doesn’t release MEMORY from objects unnecessary

For explanation I would say: Memory leaks happen when your CODE needs to consume memory in your application, which should be RELEASED after a given task is complete but isn’t. Memory LEAK happens when the browser for some reason doesn’t release memory from objects which are not needed any more.



Discussion

No Comment Found

Related InterviewSolutions