Difference between String and StringBuffer.

Answer Posted / minu

hi
i am agree with Madhu ,
String is an immutable object. StringBuffer is a mutable
object.
immutable object:If you are not allowed to change the value
of an object, it is immutable object.

mutable object: If a object value is changeable then we can
call it as Mutable object.

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea

1691


Can a class be defined inside an interface?

770


What is the indent key?

807


What are different exception types exceptions available in java ?

761


How to Sort Strings which are given in List and display in ascending order without using java api.

4107


If a method is declared as protected, where may the method be accessed in java programming?

723


What is math floor in java?

684


Is set ordered?

752


What are the four pillars of java?

905


What is constant in programming?

771


What are exceptions

855


What does this () mean in java?

765


What are the three parts of a lambda expression? What is the type of lambda expression?

821


Can string be considered as a keyword?

806


what is server side caching?

1841