What is String constant pool in java?

String Constant Pool in java

String Constant Pool in java is a pool of stored Strings in Java Heap Memory. This Constant Pool contains unique constant values to reduce redundancy. This constant pool is a part of .class file (and its in-memory representation) that contains constants needed to run the code of that class. String Constant Pool is based on FlyWeight design pattern.


Java Professional with rich experience in Java development.
– Designing and developing high-volume, low-latency applications with high-availability and performance.
– Writing well designed, robust and efficient code.

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *

LinkedIn Auto Publish Powered By : XYZScripts.com