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 |
Can constructor be protected in java?
Explain what access modifiers can be used for methods?
What variables are stored in stack?
What is Enum in Java?
What is the purpose of format function?
diff. b/w JAVA and javascript...
What is parsing in java?
What are synchronized methods and synchronized statements in java programming?
What is namespace in java?
What is a class component?
How can the checkbox class be used to create a radio button?
What is stream api in java8?