which class to use when concatenating
strings in a loop.
Answers were Sorted based on User's Feedback
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 |
What is string in java with example?
How can we make a class virtual?
what is the need of the Ajax?
What is a container in a gui?
Is java a pure object oriented language?
Difference between throw and throws?
what is a static block?
What is the is a and has a relation ship in oops concept in java?
Can we define private and protected modifiers for variables in interfaces?
How can you take string into InputStream?
we have a 100 classes at that time which class we have to write main method? pls help me
What is difference between abstract class & final class