a basic type is a data type provided by a programming language as a basic building block.Most languages allow more complicated composite types to be recursively constructed starting from basic types
a built-in type is a data type for which the programming language provides built-in support.
Such types serve only one purpose — containing pure, simple values of a kind.
String is not a primitive data type
In the Java programming language, non-primitive data types are simply called "objects" because they are created, rather than predefined.
In Java, there are 8: boolean , byte , char , short , int , long , float and double .
basic
building block.Most languages allow more complicatedcomposite types
to be recursively constructed starting from basic typesString
is not a primitive data typenon-primitive
data types are simply called"objects"
because they arecreated
, rather thanpredefined
.In Java, there are 8: boolean , byte , char , short , int , long , float and double .
References:
[1] https://en.wikipedia.org/wiki/Primitive_data_type