Java - String Pool

Posted by Gogi on Stack Overflow See other posts from Stack Overflow or by Gogi
Published on 2010-03-21T06:22:36Z Indexed on 2010/03/21 6:31 UTC
Read the original article Hit count: 190

Filed under:

What is meant by String Pool ? What is difference between the following declarations :

String s="hello"; String s=new String("hello");

Is there any difference between the Storing of this two strings by JVM ?

© Stack Overflow or respective owner

Related posts about java