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

What is number data type?

770


What is cr keyboard?

847


Write a method that will remove given character from the string?

772


Can we return null in java?

833


What is skeleton and stub? What is the purpose of those?

787


What is append function?

768


What is the need of transient variables in Java ?

803


Why we override equals() method?

775


Write a program to print fibonacci series

807


Differentiate between nested and inner class in java.

775


What is a singleton puppy?

735


How many types of java are there?

752


Explain the difference between abstract classes and interfaces in java?

837


How many bits is a 64 bit byte?

746


How to do a true java ping from windows?

807