Sobes.tech
Junior — Middle

Does a string belong to primitive data types in a programming language?

sobes.tech AI

Answer from AI

In Java, the String type is not a primitive data type. Primitive types include byte, short, int, long, float, double, char, and boolean. String is an object type, a class that represents a sequence of characters and provides many methods for working with strings.