Answer Posted / kanchan
String are read only and immutable. The StringBuffer class
is used to represent characters that can be modified.
StringBuffer is faster than String when performing simple
concatenations.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
what is the volatile modifier for? : Java thread
What is difference between hashset and hashmap in java?
Explain the difference between abstract classes and interfaces in java?
Define locale.
What is use of map in java?
Can we catch more than one exception in a single catch block?
What is lazy initialization in java?
What is default switch case? Give example.
I want to print “hello” even before main is executed. How will you acheive that?
What is array length?
What is implicit object in java?
What is the difference between delete and delete[]
Can we override constructor?
Can we clone singleton object?
What is Mutex (Mutual Exclusion Object) ?