• Post Reply Bookmark Topic Watch Topic
  • New Topic

difference between Runtime Constant Pool and String Pool  RSS feed

 
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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

Thanks
Abhay Agarwal
 
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!