Could you Please let m me know the exact class which is behind Stringpool implementation as I wanted to know how it has implemented the FlyWeightDesign Pattern
Asked
Active
Viewed 172 times
0
-
https://stackoverflow.com/questions/3801343/what-is-string-pool-in-java – Hash Jang Jan 12 '18 at 02:20
-
Thanks Hash Jang . But Actually wanted to know the internal implementation of pool As I entioned above How it has implemented FlyweihtDesignPattern – Nitin Bhatt Jan 12 '18 at 02:24
1 Answers
0
String pool is not implemented in Java source. You will not find the source code in Java. Check java.lang.String.intern() native method. I think most of the JVM implementations have String pool implemented in C++. I also remember reading somewhere that it can be done in other ways too.

kTest
- 367
- 1
- 11