Test: Introduction to C#
3. Which of the following is true about memory management in C#?
Congratulations! Correct Answer.
You Answered: None. If you took the test, your answer will show up here.
Correct Answer: The garbage collector intelligently reclaims the unused memory
ExplanationUnlike in C or C++, it is NOT the programmer’s responsibility to explicitly manage the memory by deallocating it when an object goes out of scope. The garbage collector will take care of this. While modern computers have lots of memory, they would run out of it in a hurry if memory is allocated to objects and never released.
Take the TestTake the complete test on this topic. You will be able to review answers to questions and get a test score.
Take the Test
Question 3 of 5
Test is Based on this Article
More Articles With Similar Tags