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
Can you pass by reference in java?
Differentiate between stringbuffer and stringbuilder in java.
Can arraylist hold different types java?
What is meant by class?
State the main difference between c++ and java?
What is use of super keyword?
Does google use java?
Is empty set an element of empty set?
What are jee technologies?
What is linkedlist in java?
How many threads can I run java?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
What are the advantages of assembly language?
What are recursive functions?
What is java basic concept?