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 are sets in java?
what is polymorphism with example?types of polymorphism?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
how to print the below in java?thanks in advance.... * * * * * * * *
What is the significance of listiterator?
Can a class declared as private be accessed outside it’s package?
Why we cannot override static method?
What is linked hashmap and its features?
What is the multi-catch block in java?
what is the difference b/w static and final methods?
can any one tell me what is advantage of encapsulation
what are the different non-access specifiers in java?