Question-214: Which of the following is true with regards to the Java garbage collection?
- Garbage collection is responsible for cleaning the heap memory area in Java for the objects which are not being used or referred.
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering Python Certification Material
Ans: A, B, C
Exp: If you are not a java guy then this might be little difficult for you to understand the garbage collection. In simple words let me explain you whenever new objects are created in Java that has to be stored somewhere. And in case of Java these objects are stored in in heap area. As and when new objects are created those goes into the heap area. The problem is that heap area is your memory area from the RAM. It has a limited size.
You can access to full explanation to question and answer from this page.