1.

What is the difference between String, String Builder, and Buffer?

Answer»
S.noStringStringBufferStringBuilder
1.IMMUTABLEMutableMutable
2.For logic operations, it is slowThread-safeFaster and more efficient
3.Use it when immutable structure is required.Use it for creating mutable character SEQUENCE but string CHANGES must be synchronizedUse it for creating mutable character sequence


Discussion

No Comment Found