This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Garbage collection eligibility Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Garbage collection eligibility" Watch "Garbage collection eligibility" New topic
Author

Garbage collection eligibility

Fantine Ponter
Ranch Hand

Joined: Aug 11, 2008
Posts: 30
Please will someone straighten out my confusion.
I've put comments into the code below to show where I need answers/direction:

Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 20051
    
  44

Wow... there are lots of questions here... almost too many. Anyway, I guess I'll take one of the methods.




Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 20051
    
  44

Okay, I'll take another small method too...



Henry
Fantine Ponter
Ranch Hand

Joined: Aug 11, 2008
Posts: 30
Thanks Henry, I'll try to drum that into my head. I guess I'll wait for the clarification of the main method before I can say I finally understand it all now...
Fantine Ponter
Ranch Hand

Joined: Aug 11, 2008
Posts: 30
Henry, to answer your question:
***> BTW, what do you mean by "another useless reference"?

As I understand it, there seems to be no point in creating a reference if it has no object to reference, hence 'useless reference'.

I apologize for asking so many questions. The better I can understand each statement, and recognise the statements for what they are, the fewer questions I'll be asking in my very slow learning curve.

Thanks for your informative answers to my questions. I really appreciate it.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 20051
    
  44

Okay, some more code explained (from the main() method) ...

Fantine Ponter
Ranch Hand

Joined: Aug 11, 2008
Posts: 30
okay, now the pieces are starting to fall into place. Thank you!
Fantine Ponter
Ranch Hand

Joined: Aug 11, 2008
Posts: 30
By George, I've got it! Thanks Henry
No more questions.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Garbage collection eligibility
 
It's not a secret anymore!