K
krislioe
Hi All,
As we know, dynamic String assigment will cause ineffecient resources
usage, eg :
String sample1 = new String(“Builder.com”);
sample1 += “ is “;
sample1 += “the place “;
sample1 += “to be.”;
There are 4 objects created while only one needed for use.
The question is :
When is the 3 unused objects will be garbage collected ?
Is this the case that will cause GC done often ? and resulting to high
CPU utilization (99.9 %)
Thank you for youe help,
xtanto
As we know, dynamic String assigment will cause ineffecient resources
usage, eg :
String sample1 = new String(“Builder.com”);
sample1 += “ is “;
sample1 += “the place “;
sample1 += “to be.”;
There are 4 objects created while only one needed for use.
The question is :
When is the 3 unused objects will be garbage collected ?
Is this the case that will cause GC done often ? and resulting to high
CPU utilization (99.9 %)
Thank you for youe help,
xtanto