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 is thread? : Java thread
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
What is deserialization?
When should you make a function static?
How will you reverse a link list without using recursion?
Which class represents the socket that both the client and server use to communicate with each other?
Is map sorted in java?
What is the definition of tree ?
What is Classloader in Java?
What is the class in java?
What is the difference between and ?
What is Session and cookies?Explain in detail with an example?