What is non primitive data types in java?
Answers
Answered by
0
A variable of a non-primitive type doesn't contain the value directly; instead, it is a reference (similar to a pointer) to an object. (It is not possible in Java to create user-defined value types). Java has eight primitive types: byte , short , int , long , char , boolean , float and double .
Answered by
2
Non-Primitive Datatypes
Non-Primitive data types refer to objects and hence they are called reference types. Examples of non-primitive types include Strings, Arrays, Classes, Interface, etc. ... But in Java, a string is an object that represents a sequence of characters.
Similar questions