Java Developer Question: Download Java Developer PDF

Does the garbage collection guarantee that a program will not run out of memory?

Tweet Share WhatsApp

Answer:

No, it doesn't. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection.

Download Java Developer PDF Read All 63 Java Developer Questions
Previous QuestionNext Question
Described the elements of a GridBagLayout organized in Java Programming?Can you please explain the difference between Boolean & operator and the && operator in Java Programming?