about the string literal pool

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
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
 
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 ?
 
Back
Top