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 |
How to create an interface?
What is the difference between call by reference and call by pointer?
what are the uses of Class class and what it returns? explain it with the example code.
Explain the selection sort algorithm?
When garbage collector invokes object?s finalize() method?
What is exception handling in java?
Explain tree set and its features?
How many days will it take to learn java?
What is are packages?
Write a function to print Fibonacci series and Tribonacci series?
How do you set security in applets?
Can we store variables in local blocks?