Why make short and long-lived objects a difference in garbage collection?

Posted by DR on Stack Overflow See other posts from Stack Overflow or by DR
Published on 2010-04-12T07:41:46Z Indexed on 2010/04/12 7:53 UTC
Read the original article Hit count: 286

Filed under:
|

I've often read that in the Sun JVM short-lived objects ("relatively new objects") can be garbage collected more efficiently than long-lived objects ("relatively old objects")

  • Why is that so?
  • Is that specific to the Sun JVM or does this result from a general garbage collection principle?

© Stack Overflow or respective owner

Related posts about java

Related posts about garbage-collection