logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Explain how garbage collection manages the reclamation of unused memory?


  • Correct Answer
  • The garbage collector assumes that all objects in the managed heap are garbage It starts walking the roots and builds a graph of all objects reachable from the roots recursively It stops when it attempts to add an object to the graph that it previously added The graph contains the set of all objects that are reachable from the application's roots Any object/s that is not in the graph is not accessible by the application, and is considered garbage Collection only occurs when the heap is full In such a case, each and every garbage object calls the Finalize method and reclaims the unused memory 

  • Tags: Software Architect

    Technology problems


    Search Results


    • 1. What is the purpose of reserved word using in C#?
    • Discuss
    • 2. Explain how garbage collection deals with circular references?
    • Discuss
    • 3. Which of the following are the debugging windows in .NET?

    • Options
    • A. Breakpoints
    • B. Output
    • C. Immediate
    • D. All the above
    • Discuss
    • 4. What are type safe function pointers?

    • Options
    • A. Delegates
    • B. Break points
    • C. Both A and B
    • D. None
    • Discuss
    • 5. Explain how garbage collection deals with circular referrences?
    • Discuss
    • 6. Explain the process of creating a menu using the MainMenu component
    • Discuss
    • 7. Define Virtual folder.?
    • Discuss
    • 8. Define Common Type System
    • Discuss
    • 9. What are the ways of preserving data on a Web Form in ASP.NET?
    • Discuss
    • 10. Explain how a web application works.
    • Discuss


    Comments

    There are no comments.

Enter a new Comment