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   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
When is an object in the mean to garbage collection?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: When is an object in the mean to garbage collection?
Answer
# 1
When the object is no longer referenced, its eligible for 
Garbage Collection
 
Is This Answer Correct ?    0 Yes 1 No
Sathya
 
  Re: When is an object in the mean to garbage collection?
Answer
# 2
whenever the object goes out of scope or when it is no 
longer being referenced, in such cases it can be a garbage 
object. Garbage collection is implicitly invoked whenever 
resources have to be allocated to the new objects that are 
created and approach to detect a garbage object can be done 
through reference-counting collectors,tracing 
collectors,compacting collectors. The garbage collectors 
can also be explicitly invoked by gc() supported by JVM 
which is in the java.lang package
 
Is This Answer Correct ?    0 Yes 0 No
Chandrarekha
 
 
 
  Re: When is an object in the mean to garbage collection?
Answer
# 3
when it is not reffered by any active thread
 
Is This Answer Correct ?    0 Yes 0 No
Ravikiran
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is the difference b/w design pattern and architecture Covansys2
What is Interface? BMC5
What is cloneable interface?  5
What is the difference between jsp and servlet? Symphony5
Can we declare variables inside a method as Final Variables?  3
What is Transient and volatile iFlex9
diff between abstract methods and interfaces with programing (code) example?  2
Can multiple catch statements be used in exceptions ? Wipro4
If a multi threaded Java program has started numerous number of threads, at any point in time how to know which thread is currently executing/running ? iFlex7
Can we access private data outside of the class directly in java programming language? Why There is no runtime checking in java, which leads to access the private data directly outside of a class? Google2
what is the use of private constructor in core java? Satyam3
What is the GregorianCalendar class? HCL1
Can we override static methods? Bally-Technologies15
what is d difference between deep cloning and shallow cloning in core java? Satyam2
How a class can implement an interface? SysArc4
Explain final, finalize() and finally?  6
Program to find greatest prime number in n numbers? Huawei3
What is Runtime class and its purpose?  2
How to access a method that it declared as protected?  3
What is the argument type of main() method?  2
 
For more Core Java 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