which class to use when concatenating
strings in a loop.
Answer Posted / narasimha
we any use the both classes String and StringBuffer.
but if we use StringBuffer it would be advatagebecase we
are going to create only one Object.if we use the String
class it is going to create the one for each itration.now
it up to you which one to use
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What is a heavyweight component?
What is identifier in java?
What are byte codes?
What do you mean by thread safe?
Is ruby built on java?
Write a java program to generate fibonacci series ?
Why singleton is not thread safe?
What is supplier in java?
Is a string literal?
How do you find the absolute value?
When is an object subject to garbage collection?
What is a double?
What is function declaration?
What is java util function?
Where are local variables stored?