liveBook · Manning

Primitive data type

A primitive data type is a fundamental, language-provided type for representing a basic value, rather than a composite of multiple values.

How 6 Manning books explain it

Learn Rust in a Month of Lunches

A primitive type is a built-in Rust type representing a basic value such as a number or Boolean.

How it is used
Introduces Rust’s simplest value types through choices about whole numbers and characters.
How deep it goes
Explains signedness, integer widths, binary bits, character casts, and byte counts through examples rather than defining every primitive type.
Examples
Uses integer ranges, Unicode character literals, compiler feedback on a cast, and string byte-versus-character counts.
What you can do after
Evaluate/understand it by choosing Rust integer types and distinguishing a character count from a string’s byte length.

Read how Learn Rust in a Month of Lunches explains primitive data type →

Kotlin in Action, 2E

A Java primitive type is one of Java's built-in value types, such as int or boolean, that is represented directly rather than as an object reference.

How it is used
Explains Kotlin’s basic value types and their Java interoperability, including boxing, nullability, collections, and arrays.
How deep it goes
Traces Kotlin types from source syntax through JVM primitive or wrapper representations, but defers broader array details.
Examples
Uses Int, Boolean, nullable Person ages, range clamping, boxed lists, and unboxed IntArray construction.
What you can do after
Evaluate Kotlin declarations and choose between collections, boxed generic values, and specialized primitive arrays.

Read how Kotlin in Action, 2E explains primitive data type →

Get Programming: Learn to code with Python

How it is used
Defines basic value types as building blocks for other object types.
How deep it goes
Defines object types and names five Python primitives, then explains integer values and arithmetic.
Examples
Uses integer values, arithmetic assignments, and the comparison between 1 and 1.0.
What you can do after
Understand how basic Python values are grouped into types and how integers support arithmetic.

Read how Get Programming: Learn to code with Python explains primitive data type →

Julia as a Second Language

A primitive type is a type represented directly by a language implementation rather than as a collection of user-defined fields.

How it is used
Distinguishes single-value types from field-based types before constructing larger application-specific data structures.
How deep it goes
Defines primitive types, names their common examples, checks them with isprimitivetype, and stops short of implementation-level representation details.
Examples
Uses integers, characters, floating-point numbers, strings, and an isprimitivetype REPL check as concrete examples.
What you can do after
Evaluate whether a Julia type is primitive and distinguish its single value from a composite type's fields.

Read how Julia as a Second Language explains primitive data type →

The Quick Python Book, Fourth Edition

How it is used
Frames Python's built-in types as values and structures manipulated with operators, functions, libraries, and type methods.
How deep it goes
Surveys scalar examples and contrasts them with richer structures, leaving detailed treatment to later coverage.
Examples
Uses integers, floating-point and complex numbers, and Booleans as scalar examples, contrasted with lists, dictionaries, and files.
What you can do after
Understand how Python's built-in types range from scalar values to richer structures and how operators, functions, libraries, or methods manipulate them.

Read how The Quick Python Book, Fourth Edition explains primitive data type →

Code Like a Pro in Rust

A primitive type is a built-in Rust type representing a basic kind of value rather than a composition of other types.

How it is used
Uses primitives as Rust’s basic data representations and as building blocks for structs, enums, aliases, and external-library integration.
How deep it goes
Explains primitive categories, integer widths, literal notation, platform sizes, and arithmetic behavior, without exhaustive language-reference coverage.
Examples
Demonstrates typed integer literals, numeric bases, byte literals, memory sizes, division-by-zero panics, checked division, and wrapping arithmetic.
What you can do after
Apply it via Rust’s type annotations and arithmetic methods to select representations and make overflow behavior explicit.

Read how Code Like a Pro in Rust explains primitive data type →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.