Computer Science, asked by ChadwickRoshan, 1 year ago

What are primitive and non primitive data types in java?

Answers

Answered by Prakhar2908
4
Heya!!In Java, primitive datatype refer to basic (self-explanatory, you know it's an integer when you declare an int) datatype such as int, char, short, byte,float, long, double etc. NonPrimitve DataType: Non primitive datatypes are those which uses primitive datatype as base like array, enum, class etc.




Hope it helps you.



Thanks and Regards,
Prakhar2908
Expert.
Similar questions
Hindi, 1 year ago