about the string literal pool

T

Tony Johansson

Hi!

Does all string literal be stored in the string literal pool. I mean is
there any limitation or once a string literal is declared it will be put in
the pool and stay there until the program stops.

//Tony
 
P

Patrice

Hello,
Does all string literal be stored in the string literal pool. I mean is
there any limitation or once a string literal is declared it will be put
in the pool and stay there until the program stops.

Do you see a reason for doing otherwise ? Not me...

It's good to generally question everything but what made you think that
perhaps it could be not always applicable ? Or do you have a situation where
this detail could make a difference in coding ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top