logo
What's New
What's New
  Popular
Popular
  Top Rated
Top Rated
  Search
Search


Search :  

How to Add Link |   Modify Link   |   Login |     Register  |  Getting Rated |  Link to Us |  Feedback Us


Sponsors
FlashAdvisor.com
Web Directory
phpld Hacks
Software Download
Your Site Link




Categories
    3DS MAX
    ASP
    C And C++
    ColdFusion
    Database
    Dreamweaver
    Flash
    HTML
    Java
    JavaScript
    Linux
    Maya
    MS Excel
    MS PowerPoint
    MS Word
    Paint Shop Pro
    Perl and CGI
    Photoshop
    PHP
    Premiere
    Python
    Visual Basic
    Web Hosting
    XML
 

 

Eligibility for garbage collection
  

Home  » Java » General Java  

Eligibility for garbage collection An object is eligible for garbage collection when no live thread can access it. An object can become eligible for garbage collection in different ways. Eligibility for garbage collection page 2 of 5 An object is eligible for garbage collection when no live thread can access it. An object can become eligible for garbage collection in different ways: If the reference variable that refers to the object is set to null, the object becomes eligible for garbage collection, provided that no other reference is referring to it. If the reference variable that refers to the object is made to refer to some other object, the object becomes eligible for garbage collection, provided that no other reference is referring to it. Objects created locally in a method are eligible for garbage collection when the method returns, unless they are exported out of the method (that is, returned or thrown as an exception). Objects that refer to each other can still be eligible for garbage collection if no live thread can access either of them. Consider the following example:

Hits: 78
Rate:   0.0(out of 5)  
Vote : 0   
Submit Date  : 2006-03-20
Submit By  : whizlabs
View Tutorial Eligibility for garbage collection
 Add Review
 Report Error
Rating Graph

0.0%
0.0%
0.0%
0.0%
0.0%
 1  2  3  4  5 
Rate This :
More Tutorials by this user

Interfaces
 Interfaces
Finalization
 Finalization
Declaring classes, variables, and methods
 Declaring classes, variables, and methods
Assertions
 Assertions
Exception handling
 Exception handling
Keywords are reserved words that are predefined in the langu
 Keywords are reserved words that are predefined in the language.
Flow control statements
 Flow control statements
Constructors
 Constructors
Package and class declarations
 Package and class declarations
  
Home | Sitemap | Feedback | Advertise with us
Best viewed in 800x600 resolution with Internet Explorer.
Site Developed and Hosted by EthicSolutions

Flash Tutorials    TemplateAdvisor.com    WebMastersHome.com

    Reseller Hosting    Reseller Hosting Linux