• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Meta-tips for understanding Garbage Collection  RSS feed

 
author
Posts: 8995
19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see a lot of GC-related questions on this forum. From my perspective, there are two main reasons why GC is on the exam:

1 - Java Programmers need to know how to allow the GC to collect objects they no longer need.

2 - Many Java Programmers aren't 100% clear on the differences between:

- A. The Stack vs. the Heap
- B. Objects vs. Reference Variables
- C. Pass by Value vs. Pass by Reference
- D. How the "Pass by" stuff relates to references vs. primitives

My experience is that once you totally have the concepts above nailed down, you'll find GC questions pretty easy. On the other hand, if you aren't totally solid on all of the above, GC questions can easily tie you up in knots

hth,

Bert
 
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great for all who face problem with Garbage collection
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!