what is mean by String and StringBuffer?
What is mean by Methooverriding and Overloading?
Answer Posted / raja papaiah. m
When you create a string object, you are creating a string
that cannot be changed. this once a string object has been
created, you cannot change the character that comprise that
string. at first that may seem to be a serious restriction.
However, such is not the case. You can still perform all
types of string operations. The difference is that each time
you need an altered version of existing string,a new string
object is create that contains the modifications. The
original string is left unchanged. this approach is used
because fixed, immutable strings can be implemented more
efficiently than changeable ones. For those cases in which a
modification string is desired, Java provides two options:
StringBuffer and StringBuilder Both hold strings that can be
modified after they are created
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is a java lambda expression?
What are accessor methods in java?
Differentiate between a class and an object.
What is super?
How do you know if a value is nan?
What are assembly attributes?
Can an interface be defined inside a class?
Which variable is the independent variable?
How many bits is a 64 bit byte?
What is the use of arraylist in java?
what is daemon thread and which method is used to create the daemon thread? : Java thread
What is use of functional interface in java 8? Explain
How to display names of all components in a Container?
How many types of string data types are there?
Name some classes present in java.util.regex package.