Grokking Java Interview Questions
0% completed
Memory Leaks in Java
A garbage collector keeps every object that the program can reach through ordinary references. It cannot know whether the program will ever use a reachable object again. An object that stays reachable although the program has finished with it occupies memory that the collector is not allowed to free.
A program in which such objects accumulate has a memory leak. The questions below define a leak with a small example, list the usual sources, describe the signs in a running service, and repair a cache that has no limit.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%