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
Can an unreachable object become reachable again?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Can an unreachable object become reachable again?
Answer
# 1
Yes, an unreachable object may become reachable again.This 
happens when the object's finalize() method is invoked and 
the objct performs an operation which causes it to become 
accessible to reachable objects.
 
Is This Answer Correct ?    4 Yes 0 No
Niranjanravi
 
  Re: Can an unreachable object become reachable again?
Answer
# 2
YES, Finalization is a feature of the Java programming 
language that allows you to perform postmortem cleanup on 
objects that the garbage collector has found to be 
unreachable. It is typically used to reclaim native 
resources associated with an object. 
When the garbage collector determines that obj is 
unreachable, it notices that obj is finalizable -- as it 
had been recorded upon allocation -- and adds it to the 
JVM's finalization queue. It also ensures that all objects 
reachable from obj are retained, even if they are otherwise 
unreachable, as they might be accessed by the finalizer.

So, we can say that it can be reachable.
 
Is This Answer Correct ?    4 Yes 0 No
Rakesh Kumar Jha
 
 
 
  Re: Can an unreachable object become reachable again?
Answer
# 3
yes an unreachable object may become reachable once it get a
reference befre garbage collection especially in finalize()
method call
 
Is This Answer Correct ?    4 Yes 0 No
Ravikiran(aptech Mumbai)
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is overloading and overriding with example? CMC1
There are 2 classes, 1 LandAnimal and another WaterAnimal. There is another class Animal which wants to have the properties of both LandAnimal and WaterAnimal. How will you design this situation? KPIT3
how can u apply shallow cloning and deep cloning to create object? Yash-Technologies1
Explain difference between final, finally and finalize?  2
What are Encapsulation, Polymorphism and Inheritance?  2
Relationship between an event-listener interface and an event-adapter class?  1
What is the Vector class?  3
What is the specification of ?CODEBASE? in an applet?  1
Why java Don't Support Multiple interitence ABC7
How Array List can be Serialized. Polaris5
What is Map interface? Wipro2
Same common question what is Map,Set,HashMap,List???? Symphony3
Can an object?s finalize() method be invoked while it is reachable?  2
what is hashmap& hashtable with example? CTS1
which class to use when concatenating strings in a loop. IBM2
Sample code to retrieve objects from HashMap in sorted ascending order?  1
Explain the relationship between the Canvas and Graphics class?  1
What are the ways of polymorphism other than Overridding & Overloading  1
can u give one sinario when you use Abstract Class and When you use Interface. ITC-Infotech5
What are Font and FontMetrics classes?  1
 
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