Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

Which of the following jobs are NOT performed by Garbage Collector?

  1. Freeing memory on the stack.
  2. Avoiding memory leaks.
  3. Freeing memory occupied by unreferenced objects.
  4. Closing unclosed database collections.
  5. Closing unclosed files.

 

A. 1,2,3 B. 3,5 C. 1,4,5 D. 3,4

user-image
Question ajoutée par Mohannad Bakbouk , Full Stack Web Developer , Almohtaseb
Date de publication: 2016/10/26
Muhammad Umar Javed
par Muhammad Umar Javed , Senior Software Engineer , Synergy-IT Pakistan

I think options 1,4 and 5 are correct which is option C. The garbage collector collects any unreferenced memory and memory consumed by managed resources. However it does not free memory on stack, close database connections or files.

Nuzhat Khan
par Nuzhat Khan , Software Architect , Beauceron Security

The correct option is - Garbage Collector does NOT free memory on the stack or close any unclosed files or collections

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?