Difference between the String and StringBuffer classes?

Answer Posted / anitha

yes, String is a immutable that means once the string
object is created it cannot be changed.

String Buffer: it is a mutable,this object is changed if we
make any modifications.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you reverse a link list without using recursion?

607


When will we prefer to use set and list in java and why?

554


How will you serialize a singleton class without violating singleton pattern?

1531


Can a main method be overloaded?

583


explain copyonwritearraylist and when do we use copyonwritearraylist?

554






Describe string intern() methodology

608


What is the main purpose of serialization in java?

538


What is adapter in java?

530


Explain the difference between the public, private, final, protected, and default modifiers?

563


What is meant by class and object in java?

567


How infinite loop is declared?

554


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

534


Is java se open source?

582


What is the byte range?

593


What technique is carried out to find out if a particular string is empty?

585