Re: what is the need for copy constructor in String class?
- From: Steve Wampler <swampler@xxxxxxxx>
- Date: Tue, 02 Sep 2008 11:13:17 -0700
Piper707@xxxxxxxxxxx wrote:
Thank you to everyone who responded, specially Eric - that was a clear
explanation.
With regards to Joshua's comment, if literals do not get garbage
collected, would that not pose a problem from a memory point of view
if my program has a lot of strings? Does the size of the string
constant pool vary dynamically or is it fixed?
You can't create new string literals/constants at runtime, so this
isn't a problem.
--
Steve Wampler -- swampler@xxxxxxxx
The gods that smiled on your birth are now laughing out loud.
.
- Follow-Ups:
- Re: what is the need for copy constructor in String class?
- From: Eric Sosman
- Re: what is the need for copy constructor in String class?
- References:
- what is the need for copy constructor in String class?
- From: Piper707
- Re: what is the need for copy constructor in String class?
- From: Eric Sosman
- Re: what is the need for copy constructor in String class?
- From: Piper707
- what is the need for copy constructor in String class?
- Prev by Date: GlassFish Update
- Next by Date: Re: Dynamicly generate class from foreign key lookup table, reference values
- Previous by thread: Re: what is the need for copy constructor in String class?
- Next by thread: Re: what is the need for copy constructor in String class?
- Index(es):
Relevant Pages
|