Amazon Interview Question
Software Engineer / DevelopersThere are two types..which i think...
1)As explained in above article.. We need to take care of things such as setting the reference to null when the variable in no longer needed. Whenever you have static class, ask yourself do i really need it, as it will be there till the life cycle of the program. Event Listener : de-register when the class usage is no longer needed. etc...
2) Other types of leaks are basically resource leaks such file handle not closed, graphics application where you render object on the screen and without deleting the same you create another object and render it so on.
http://www.ibm.com/developerworks/library/j-leaks/index.html
- Anonymous November 11, 2008