Friday, September 2, 2016

String pool differences in java 6 and java 7

While reading a blog here, I found a quite interesting improvements in String Pool


  • String pool is relocated to Java heap space from PermGen space.
  • The default size of String pool is increased to 600013 entries from 1009 in Java 6.
  • The -XX:StringTableSize JVM option is provided to specify the size of String pool. 

  • No comments:

    Post a Comment

    Java garbage collection

    In this post , we ’ ll take a look at how garbage collection works , why it ’ s important in Java , and how it works in...