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
How many bytes is 255 characters?
What happens to a static var that is defined within a method of a class?
What does flagged out mean?
how is final different from finally and finalize in java?
Is java free for commercial?
What is OOP's Terms with explanation?
What is break and continue statement?
Explain how hashmap works?
Is heap stored in ram?
How do you identify independent and dependent variables?
How many tetrahedral voids are there in bcc?
Can an interface extend another interface?
What is foreach loop in java?
Explain about core java?
What does file separator do in java?