Social Sciences, asked by vipul2395, 1 year ago

What is non primitive data types in java?

Answers

Answered by ashishag428
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 Anonymous
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