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   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net Framework
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
What is the use of finalize and dispose eventhough garbage
collector is working?
 Question Submitted By :: Swapna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the use of finalize and dispose eventhough garbage collector is working?
Answer
# 1
We can perform finalize opertaion Immediately after 
completing the work and same with dispose also while in 
case of garbage collector it will dispose the object, until 
it feels they are not in use.
 
Is This Answer Correct ?    4 Yes 0 No
Chinmay Shah
 
  Re: What is the use of finalize and dispose eventhough garbage collector is working?
Answer
# 2
It is advisable not to use the finalize and Dispose
methods,because garbage collector takes Care of the objects
that Should be Disposed.We should use Finalise and Dispose
methods when working with resources in the network or
working with the unmanaged code.
 
Is This Answer Correct ?    2 Yes 1 No
Chaitanya
 
 
 
  Re: What is the use of finalize and dispose eventhough garbage collector is working?
Answer
# 3
Finalize method is actually a the destructor for the 
mananged objects, but if you want to destruct an unmanaged 
object dispose method allows the programmer to make 
explicit calls such as destroywindow to the destruct the 
unmanaged object.
 
Is This Answer Correct ?    1 Yes 0 No
Bharani
 

 
 
 
Other Dot Net Framework Interview Questions
 
  Question Asked @ Answers
 
What are the ways to deploy an assembly?  1
What is the main difference between VS 2005 and VS 2003? CTS3
What are the types of assemblies and where can u store them and how ? Accenture7
What platforms does the .NET Framework run on?  1
How does assembly versioning work?  1
How Garbage Collector identifies the objects which are not in use? Honeywell5
What is serialization ? MMTS4
If we not suppress finalize method in dispose what will happen? Kanbay1
What is the use of finalize and dispose eventhough garbage collector is working? Kanbay3
Tell me the best web-sites for Learning the ASP DOT NET.  1
creating crystal reports in asp.net & vb.net  1
If we write return statement in finally block will it works fine or throws any error? Kanbay5
How do you register the dotnet component or assembly ? Accenture1
Features in .net framework 1.1 ? Digital-GlobalSoft1
I have interview in accenture.I cleared 1st round in techniqual.I have interview with project lead.pls help me. Accenture2
Difference between manifest , metadata? TCS3
What are the features that are new in .net 2.0 Emphasis2
About namespaces ? MMTS2
can we call the garbage collector to run explicicitly? Kanbay5
what are background threads? give ex? Kanbay3
 
For more Dot Net Framework 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