ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
About Garbage Collector?
 Question Submitted By :: Swapna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: About Garbage Collector?
Answer
# 1
garbage collection is a form of automatic memory management.
The garbage collector attempts to reclaim garbage or memory
used by objects that will never be accessed or mutated again
by the application.
 
Is This Answer Correct ?    0 Yes 0 No
Seshu
 
  Re: About Garbage Collector?
Answer
# 2
i)GarbageCollector will take care about Automatic Memory
Management it will mark the objects which has Referrence
Count is Zero.
ii)One Background Thread running in the Application with
Normal Priority And Marking The Objects Which has Referrence
Count is Zero.when there is no Applications Threads Are
Running it will Take High Priority.
iii)And this Garbage Collector Will Take Care About
"Circularreferrences"(means One Pair Of Objects Referring To
Each Other)
 
Is This Answer Correct ?    0 Yes 1 No
Sivaprasad
 
 
 
  Re: About Garbage Collector?
Answer
# 3
Garbage collection is an in deterministic process Associated
with CLR. It is used to release the managed free Objects
that are no more refrenced.
But there might be scenarios in which we need to release
certain resources held by an object (like a database
connection) once the object is no longer in use.

We have destructors in C#.C# destructors are nothing but
finalize methods in disguise, with a call to base class's
finalize method.

As we know, finalize method is called during garbage
collection by garbage collector. Hence, we cannot rely only
on C# destructors to explicitly release resources as
finalize methods on objects may never be called altogether
(if the program terminates abnormally) or might be called
only when the program terminates (in a normal way).

Hence it is always a good practice to implement IDisposable
interface in such cases and to write code to release
resources explicitly in the Dispose() method.In that case we
 have to use GC.SuppressFinalize() method.
 
Is This Answer Correct ?    1 Yes 0 No
Sayeed
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Difference between dynamic query and static query ? DELL1
Describe the difference between inline and code behind - which is best in a loosely coupled solution Tightly coupled - INLINE  1
Explain which is best suited place in the Application Start and Session_Start subroutines with an example?  3
What is the difference between ExecuteReader,ExecuteNonQuery and ExecuteScalar.  3
What is CLS? PrimeLine1
in database table is thier . in that table fields are photoid , photoname,photo... i want display image in the gridview TCS4
Suppose, I have 3 pages, Page1.aspx, Page2.aspx, Page3.aspx. All pages are in diff. server. When user req. for a page, Page1.aspx opens Ist & a session established. If user req. for IIn page, second session established. Similarly, 3rd session established if user req. 3rd page. In this scenario, tot. 03 sessions are established. How we can minimize it so that it will work with only one session? Wipro2
what are partial classes and their use? Microsoft2
Define an assembly?  6
Is string a value type or a reference type?  9
What is custom control. What is the difference between custom control and user control ? Microsoft1
Have you used microsoft dataaccess blocks and Exception blocks? Microsoft1
hi im shailendra singh my question is how we deploye the data base HCL2
How do you specify whether your data should be passed as Query string and Forms (Mainly about POST and GET)  2
How to consume a webservice in a windows application without adding through the web reference? 247Customer1
About Windows/Forms Authentication  1
I have one .Net application and i have two databases which is in SQL server2000 and one more database in ORACLE? how can i access the database from different Databases? eXensys3
Singleton Design pattern?How do you achieve it? Microsoft2
where should write the connection string Show that it will apply whole pages in the website Symco5
What is dataset and uses of dataset ? TCS4
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com