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 |
Why can't we override private static methods?
Can you make an instance of an abstract class?
What are Normalization Rules? Define Normalization?
how to handled exceptions & erros in ejb?
What are the 3 types of control structures?
how to convert mm/dd/yy to dd/mm/yy using collections in java.
What is the synonym of framework?
how a marker interface gets its functionality and when we implements a marker interface how it got invoked
What is unmodifiable collection in java?
Which is faster string or stringbuilder?
What are static initalizers in java ?
Can we make the abstract methods static in java?