+ 5

what are "primitive data type"?

?

19th Dec 2016, 2:29 PM
mahesh naandade
mahesh naandade - avatar
5 Answers
+ 5
Primitive data types are data types existing by default: char,int,float,long,double. You can use these without having to define how they work. Unlike primitive data types the other type of data type is user defined data type These are structs defined by the user for various functions.
19th Dec 2016, 2:38 PM
Caffeinated Gamer YT
Caffeinated Gamer YT - avatar
+ 4
Generally data types are of two types : primitive data types(size already defined with respect to compiler) like int, float, char, bool and other type is user defined data types(size can be fixed according to user) like struct and class
19th Dec 2016, 2:34 PM
Manikanta Nallamalli (Mittu)
Manikanta Nallamalli (Mittu) - avatar
+ 3
True False booleans?...
19th Dec 2016, 2:31 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
@valentinhacker true false are not types. They are values. boolean is a primitive type though.
19th Dec 2016, 2:40 PM
Caffeinated Gamer YT
Caffeinated Gamer YT - avatar
0
to write and character or number or words even any other thing the computer can not understand that is a number or character or any other so he need some thing through it he can specify the kind of the data to deal with it and understand it so we use data type but data type itself has two types primitive and non-primitive primitive mean that is has one behaviour and action like the, int ,short,long,double,float,Boolean,char that is the only primative type in java any other data type is non primative like String it is has more behaviours you can use it as a data type or an object from class string in java or like a class name when you use it as datatype I hope it clear now
21st Dec 2016, 5:23 AM
aya ahmed
aya ahmed - avatar