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 do you understand by soft reference?
What mechanism does java use for memory management?
How we get some middle records in one table?
Does java support Operator Overloading?
Which package is imported by default?
What is sleep method?
What is the generic function?
Can you explain the final method modifier?
What is the purpose of the enableevents() method in java programming?
Is java a pure object oriented language?
Explain covariant method overriding in java.
What is a deadlock ?