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


Please Help Members By Posting Answers For Below Questions

What is the major drawback of internal iteration over external iteration?

585


When will we use them?

591


What is logical variable?

510


What is strings in java?

585


What is jit and its use?

580






What are the core java topics?

563


What is consumer interface?

558


What is the longest unicode character?

693


How will you initialize an Applet?

618


Can a main method be overloaded?

571


What is assembly condition codes?

558


What is meant by class loader? How many types are there?

672


How do weakhashmap works?

587


Can we use a switch statement with strings?

549


What are the different types of inner classes?

531