Hi,
String Pool uses PermGen not Heap space.
Perm Gen : Permanent Generation space
If Perm Gen fills up then it will give OutofMemory error.
Thanks,
Nirmal
\\\///
/ \
| \\ // |
( | (.) (.) |)
----------o00o--(_)--o00o-------------------
Stand up,be bold,be strong.
Take the whole responsibility on
ur own shoulders and know that
U are the creator of ur own destiny.
------ooo0-------------------------------------
( ) 0ooo
\ ( ( )
\_) ) /
(_/
On Sun, Feb 7, 2010 at 5:27 AM, Shiv Shankar <[email protected]>wrote:
> Hi everyone,
> I have a question regarding String Constant Pool. As we know Strings are
> immutable objects and JVM put all the string literals in String Constant
> Pool. If I am continuously using String Constant Pool and if there is no
> space in String Constant Pool but there is space in Heap. Will it give
> memory allocation error or will use Heap memory to store string literals.
> Please clarify my doubt. Thanks in advance.
> --
> With Regards,
> Shiv Shankar
>
> --
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]<javaprogrammingwithpassion%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/javaprogrammingwithpassion?hl=en
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en