What are the types of non primitive in java?

Java

1 answer

Answer

1109774

2026-04-19 09:55

+ Follow

Java
Java

There are 8 primitive data types: byte, short, int, long, float, double, boolean, char

any other data type in Java can be considered non primitive data type.

Ex: String

String data type can also be known as the primitive data type because it is already provided by the Java language, since it is not a data type but its a class, but as we know that we can use the classes as types for the variables/instance variables, as we use while creating an object of any class, hence the classes that we create and use them as a datatype are known as non-primitive datatype....

for any query, mail me on engineer.sooraj@gmail.com or call me on +92-331-350-6956.....

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.