Garbage collection behaviour for String.intern()

Posted by Ravi Gupta on Stack Overflow See other posts from Stack Overflow or by Ravi Gupta
Published on 2010-03-12T09:14:13Z Indexed on 2010/03/12 9:17 UTC
Read the original article Hit count: 413

If I use String.intern() to improve performance as I can use "==" to compare interned string, will I run into garbage collection issues. How does the garbage collection mechanism of interned strings differ from normal strings ?

© Stack Overflow or respective owner

Related posts about java

Related posts about string