Advanced
C#
Q61 / 100
What is the difference between managed and unmanaged resources in .NET?
Correct! Well done.
Incorrect.
The correct answer is B) Managed resources are tracked by the GC; unmanaged resources (files, sockets, native memory) must be released manually via IDisposable
B
Correct Answer
Managed resources are tracked by the GC; unmanaged resources (files, sockets, native memory) must be released manually via IDisposable
Explanation
The GC handles managed memory automatically. Unmanaged resources (OS handles, COM objects) need Dispose() or finalizers to be released.
Progress
61/100