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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
can we call the garbage collector to run explicicitly?
 Question Submitted By :: Swapna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: can we call the garbage collector to run explicicitly?
Answer
# 1
s we can cal Gc explisitly but it Reduces the performance.
 
Is This Answer Correct ?    1 Yes 0 No
Sri4u_926
 
  Re: can we call the garbage collector to run explicicitly?
Answer
# 2
Yes we can call the Garbage collector explicitly by using
method Collect().

Ex. Create object for the Garbage collector.

    GarbageCollector Gc = new GarbageCollector();
    Gc.Collect();
 
Is This Answer Correct ?    4 Yes 0 No
Velu S
 
 
 
  Re: can we call the garbage collector to run explicicitly?
Answer
# 3
not required to create object
we can call directly
System.GC.Collect();
 
Is This Answer Correct ?    2 Yes 0 No
Rakesh
 
  Re: can we call the garbage collector to run explicicitly?
Answer
# 4
But forcefully calling Garbage collector reduces the
performance. As when CLR runs Garbage collector
automatically it checks all the objects which are not used
for a long time and remove them. But if we use
System.GC.Collect(), it will shift the particular object to
cache. When CLR founds no object which is made to be free
then it will check the cache memory from there it will
remove that very object. So, how it is reducing the performance.
 
Is This Answer Correct ?    1 Yes 0 No
Prateek
 
  Re: can we call the garbage collector to run explicicitly?
Answer
# 5
we can call the garbage collection explicitly but performing a garbage collection is totally dependent on the JVM. So calling System.gc() does not necessarily performing the garbage collection.

--
XYZ
 
Is This Answer Correct ?    1 Yes 2 No
Xyz
 

 
 
 
Other Dot Net Framework Interview Questions
 
  Question Asked @ Answers
 
Httpcontext objects? HP2
js fn to go to the particular page when enter is clicked  1
What is different between User Control and Web Control and Custom Control?  1
If we write return statement in finally block will it works fine or throws any error? Kanbay5
Why are there five tracing levels in System.Diagnostics.TraceSwitcher?  1
What is a serverside technology? what is a clientside technology? what is a clientserver technology? what is a internet based application? what is a intranet based application? what is a windows application? what is a console application? Difference between console application and windows application? IBM3
Integer & struct are value types or reference types in .NET?  3
What does CLR do as soon as an assembly is created ? MMTS1
What is strong name?  4
Is it possibe to run 2 aplication on single m/c, one App is on .Net Framework 1.0 and another one is on .Net Fremework 2.0?  5
Can we look at the IL for an assembly?  2
What are the types of assemblies and where can u store them and how ? Accenture7
If Controller is not there in MVC Pattern what happens?  1
What is JIT and how is works ?  4
If we not suppress finalize method in dispose what will happen? Kanbay1
How could we achieve Langauge Interoperability through "CLS"?? Please Expalin in detail with Example.. Thanks for the Help!!!!! HCL2
what is VSS? Where we are using? TCS2
what is Thread Priority?  1
What is the necessity for singning an assembly with a strong name? L&T1
what is difference b/w .net 1.1 and .net 2.0. I need Answer in c# , asp.net and ado.net Level.Like c#1.1 and c#.1.1 , ado.net1.1 and ado.net2.0 and asp.net1.1 and asp.net2.0  4
 
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