datatypes
Integer, string, boolean
Datatypes are categories that specify what kind of value a piece of data holds in programming—integer, string, boolean, floating-point number, and so on.
The datatype determines what operations can be performed: you can add integers but not concatenate them like strings.
Languages vary in how strictly they enforce datatypes.
Also spelled as two words: data types.
Number lacking fractions
- floatBuoyant object or vehicle
- stringSlender fiber or character sequence
- booleanTrue-or-false valued
- charBurn without destroying
double · byte · short · long · void · unsigned · signed · literal
Ordered collection or display
- treeWoody perennial plant
- graphVisual data display
- stackItems piled vertically
- queueOrdered waiting line
set · map · tuple · record · union · struct · object · hashtable
Exceed capacity and spill
- underflowValue too small computed
- truncationCutting something shorter
- roundingAdjusting to simpler values
- precisionAccuracy of measurement
coercion · sanitization · parsing · formatting · constraint · range · domain · nullable
Unbranded equivalent products
- polymorphismMany forms, one interface
- covarianceJoint deviation measure
- nullableMay lack value
- optionalNot mandatory
Consisting of two parts
- bytesUnits of digital storage
- bitsSmall portions or pieces
- encodingConverting data to format
- decodingExtracting meaning from symbols
serialization · marshalling · JSON · XML · CSV · base64 · UTF-8 · compression
integer
Number lacking fractions
char · double · byte · short · long · void · unsigned · signed · literal · null
array
Ordered collection or display
queue · set · map · tuple · record · union · struct · object · hashtable · collection
overflow
Exceed capacity and spill
- underflowValue too small computed
- truncationCutting something shorter
- roundingAdjusting to simpler values
precision · coercion · sanitization · parsing · formatting · constraint · range · domain · nullable · NaN
generics
Unbranded equivalent products
- polymorphismMany forms, one interface
- covarianceJoint deviation measure
- nullableMay lack value
binary
Consisting of two parts
decoding · serialization · marshalling · JSON · XML · CSV · base64 · UTF-8 · compression · checksum