1.

Is String a primitive or derived type in Java?

Answer»

Strings are derived data types. Strings are Java objects that REPRESENT sequences of characters. STRING objects are CREATED using the java.lang.String class. There are MANY functions that need to be called upon when processing a string, such as substring(), indexof(), equals(), TOUPPERCASE(), etc, which primitives types do not have.



Discussion

No Comment Found