• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

difference between Runtime Constant Pool and String Pool

 
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Please let me know the difference between Runtime Constant Pool and String Pool.

Thanks
Abhay Agarwal
 
lowercase baba
Posts: 13003
66
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What have you found when you did the most basic research? What didn't you understand?

We expect folks to ShowSomeEffort (<--click that) when they post a question. Then come back and ask for clarification of what you don't understand.
 
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There isn't a general runtime constant pool, but rather various per-type runtime constant pools. A general constant pool does exists inside every binary .class file, where String literals as definied in the .java file end up. The JVM uses the String type entries in those constants tables to fill the runtime String constant pool at class or interface creation time.
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi check this links, It is very help full for you [url=http://www.programmingvideotutorials.com/java/java-constants]Run time constants[/url]
 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

sourav jain wrote:hi check this links, It is very help full for you [url=http://www.programmingvideotutorials.com/java/java-constants]Run time constants[/url]



I recommend against using that video. I don't have any audio right now, so I can't listen to it, but I saw at least one factual error in the text. It claims that local final variables have to be assigned at declaration. That's false. They just have to be assigned before they're used. I'd avoid the whole site if they make a mistake that fundamental.
reply
    Bookmark Topic Watch Topic
  • New Topic