Difference between the String and StringBuffer classes?

Answer Posted / sathya

String class is immutable i.e oncle created the value
cannot chage.

Stringbuffer class is mutable.The value can change.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the process as to how substring() methodology mechanisms in java.

545


What is difference overloading and overriding?

567


What is the structure of java?

491


What are the differences between include directive and include action?

529


How does hashmap work in java ?

531






What is use of functional interface in java 8? Explain

551


Is an array a vector?

540


What are the types of literals?

547


Why java is considered dynamic?

741


What is 32 bit float?

545


How do I know if java is installed?

504


Explain the importance of finally block in java?

557


What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?

647


How to display names of all components in a Container?

2476


Can an object subclass another object?

545