what is mean by String and StringBuffer?
What is mean by Methooverriding and Overloading?




Answers were Sorted based on User's Feedback



what is mean by String and StringBuffer? What is mean by Methooverriding and Overloading? ..

Answer / ravi

String is a final class which represents a character
string,string are constant they value cannot be changed
after they r created
its is final class Stringbuffer,Stringbuffer implemets
muttable String character,its is like a string but can be
modified, the length and content can be changed during
method call

Is This Answer Correct ?    7 Yes 0 No

what is mean by String and StringBuffer? What is mean by Methooverriding and Overloading? ..

Answer / r maria ruban raj

What Ravi said is correct in string and string buffer.
method overriding is same method available in both base or
super class and in drived class. At that time we say this
is over riding. method over loading is same method with
different signurate and different parameter.

Method over riding ===base class and drived class
Method overloading === same class

Is This Answer Correct ?    5 Yes 1 No

what is mean by String and StringBuffer? What is mean by Methooverriding and Overloading? ..

Answer / 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



More Core Java Interview Questions

Can we define private and protected modifiers for the members in interfaces?

0 Answers  


where is .equals() method and how is it different from == operation <giving some confusing implementation> Is hashing related to these?

4 Answers   iFlex,


What is the default value of an object reference declared as an instance variable?

0 Answers  


Suppose there is an Online shopping cart application having different objects like Cart, SelectionItem, Billing, COnfiguration, Authentication, Authorization, PersonalDetails etc. Out of this which one can be made a singleton pattern and why?

2 Answers   RBS,


when you will synchronize a piece of your code? : Java thread

0 Answers  






Can we use a switch statement with strings?

0 Answers  


which one is performance wise advantageious from List,Set,Map?

6 Answers  


What is a methodologist?

0 Answers  


What is constructor chaining and how is it achieved in java?

0 Answers  


I want to re-reach and use an object once it has been garbage collected. How it's possible?

0 Answers  


Can we place the any object to key attribute of HashMap<key,value>?

4 Answers   HCL,


How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?

0 Answers  






Categories