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
How do you make an arraylist empty in java?
What is local class in java?
What is use of functional interface in java 8? Explain
Can we override private constructor in java?
Why chararray() is preferred over string to store the password?
Can we define private and protected modifiers for the members in interfaces?
In java, what is the difference between method overloading and method overriding?
What is a variable simple definition?
Can an interface have a constructor?
Why is java so important?
What are JVM.JRE, J2EE, JNI?
What is the file type?
Can you access the private method from outside the class?
What is character in data type?
What is a classloader in java?