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
How will you reverse a link list without using recursion?
When will we prefer to use set and list in java and why?
How will you serialize a singleton class without violating singleton pattern?
Can a main method be overloaded?
explain copyonwritearraylist and when do we use copyonwritearraylist?
Describe string intern() methodology
What is the main purpose of serialization in java?
What is adapter in java?
Explain the difference between the public, private, final, protected, and default modifiers?
What is meant by class and object in java?
How infinite loop is declared?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
Is java se open source?
What is the byte range?
What technique is carried out to find out if a particular string is empty?