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 the function of java?
why HashTable not allow null key and value
what is purpose of writting public static void main(Strind arg[]) in java..?
Explain about version control?
What is java used for?
what is thread in Java ?
Is JRE required to compile Java files ?
What is the multi-catch block in java?
Where local and global variables are stored?
Can we have 2 main methods in java class?
What is the use of Getters and Setters method ?
Can you create an object of an abstract class?