Basic and Advance Java Question:

Does 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 PDF Read All 81 Java Questions
Previous QuestionNext Question
What are wrapped classes in Java Programming? What is the difference between preemptive scheduling and time slicing in Java Programming?