Amazon Interview Question: Describe how the Java garbage... | Glassdoor

Interview Question

Software Development Manager Interview Seattle, WA

Describe how the Java garbage collector works

Answer

Interview Answer

1 Answer

1

Garbage collector is very misunderstood. People think its a resource clearing engine. Not true. Its more for defragmentation of memory so that the system keeps running efficiently. Otherwise, you get thrashing going on and the memory manager keeps working hard in order to find allocatable chunk of memory. This is especially true in systems with lots of memory but needs to run for long periods of time without reboot. E.g. tablets and smartphones.

Irsh on Jan 17, 2013

Add Answers or Comments

To comment on this, Sign In or Sign Up.