• Post Reply Bookmark Topic Watch Topic
  • New Topic

String Intern Pool design/implementation  RSS feed

 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want to know how Oracle has designed/implemented String pool or String intern pool in Java ?
Means is String pool is coded as HashMap, TreeSet , HashSet etc ?
Please share any links or detail for my query.

Thanks
Abhay Agarwal
 
Tim Cooke
Marshal
Posts: 4048
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The short answer is: It doesn't matter.

As a programmer there is no need for you to know this. In fact, the implementation may differ between JVM vendors and versions so there is no definitive answer to give.

Why do you want to know? If it's purely for personal interest then forget about it, spend your time more wisely learning about other more important things.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!