ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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
تم إضافة السؤال من قبل Mohannad Bakbouk , Full Stack Web Developer , Almohtaseb
تاريخ النشر: 2016/10/26
Muhammad Umar Javed
من قبل 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
من قبل Nuzhat Khan , SOFTWARE ARCHITECT , BEAUCERON SECURITY (REMOTE)

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

المزيد من الأسئلة المماثلة