Full Stack Developer (Java) Question:
Download Questions PDF

Do you know how does Garbage Collection prevent a Java application from going out of memory?

Answer:

This is a tricky one… it doesn’t! Garbage Collection simply cleans up unused memory when an object goes out of scope and is no longer needed. However an application could create a huge number of large objects that causes an OutOfMemoryError.

Download Full Stack Developer (Java) Interview Questions And Answers PDF

Previous QuestionNext Question
Please explain what is the best implementation or debugging you have done in the past?Tell me what is the most puzzling programming challenge you have come across recently?