Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About garbage collection ?

 
yusure
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why can JAVA have the garbage collection function?
But other program like c and c++ can't.
I think it maybe about point(c and c++) and reference(JAVA), but I can't understand their relation clearly.
Have somebady can help me to understand , thank you !!
 
David Weitzman
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch! Please change your display name to comply with the JavaRanch Naming Policy.
Actually C and C++ can be garbage collected. Garbage collection isn't optional in Java simply because James Gosling wanted it that way. It's not something particular to the language.
 
yusure
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you a lot ^^ .
I already see that URL and chang my display name ...
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yusure,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy. Note that single word names aren't allowed, nor are obviously fictitious ones.
Thanks Pardner! Hope to see you 'round the Ranch!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic