well, this is another question on strings and garbage collection.
When I create a
string with "new", it's in heap, at the sametime one string will be created in the pool. So, this heap copy will get GCed fine but the one in the pool will remain till the application exits.
Now if in my appication, I have to create lot of string(magnitude of 1M and more), how do i cope up with this situation. All these strings will be created in the pool even if I use a new operator, and will remain there till I exit my appl. Is there no way to GC my strings if they are no more referenced??? What are the advantages, if any, to create a string with the "new" operator???
Thanx,
SHankar.