Which one of the following suits the description of a string better: derived or primitive?

devquora
devquora

Posted On: Feb 22, 2018

 

A String is a Derived kind since it has state and conduct. For instance, it has strategies like substring(), indexOf(), and equivalents(), that particularly primitives do not have. However, people as a whole use it so frequently that it has some uncommon qualities that make it feel like a crude: While strings are not put away on the call stack, as are primitive, they are put away in an exceptional memory area called the string pool. Like primitives, we can utilize the + administrator on strings. In addition, once more, similar to primitives, one can make an occurrence of a String without the latest password.

    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..