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. 


  • 📥 Get Your Free Java Interview Question Guide

    Don't just read—learn! Get 10 essential Java interview questions with complete solutions delivered to your inbox. Perfect for interview prep or skill refreshing.

    Enter your email below:

    We'll send you the PDF plus Java tips. Unsubscribe anytime.

    No comments:

    Post a Comment

    Traditional Threads vs. Virtual Threads: A Performance Benchmark on Spring Boot 4

    Traditional Threads vs. Virtual Threads: A Performance Benchmark on Spring Boot 4 Bottom line: For high-concurrency Spring Boot apps on mo...