CodesJava

Easy learning with example program codes

is string a primitive type or derived type?


String is a derived type.

String:  

In General – String is sequence of characters.
In Java – String is an object which is created by using String class. String objects are immutable and they can’t modified i.e. any change in the existing object will result into a new object.

Java interview questions on string handling



Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap