Differentiate between StringBuffer and String.

devquora
devquora

Posted On: Feb 22, 2018

 

StringStringBuffer
Length is fixedLength can be changed whenever required
It is immutableIt is mutable
The object shows slow performanceObject exhibits fast performance
Consumes loads memoryConsumers lower capacity of memory
Stored in a constant poolStored on a heap of the memory

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Java String interview Questions

    What do you understand by the term String with respect to Java?

    With respect to Java, a String can be attributed internally by a variety of byte esteems..

    Java String interview Questions

    Describe String intern() methodology

    As indicated by Oracle records, when the intern methodology..