Start here · Essential guide
Primitive vs. Non-Primitive Data Types
Learn how primitive and non-primitive data types differ, with examples of what each holds and how Java, Python and JavaScript handle them in practice.
Computing Foundations
Primitive and non-primitive data types, with the built-in types of Java, Python and JavaScript.
Start here · Essential guide
Learn how primitive and non-primitive data types differ, with examples of what each holds and how Java, Python and JavaScript handle them in practice.
Python has no separate primitive types, so this guide groups its built-in types into seven categories with examples and notes on mutability for beginners.
JavaScript has seven primitive types: string, number, bigint, boolean, undefined, symbol and null. This guide explains each, with typeof checks and examples.
There is no single official list of seven data types. This guide offers one practical grouping, from integers and text to arrays and records.
Java has eight primitive data types: byte, short, int, long, float, double, char and boolean. Here is what each one holds, its size and an example.
Related topics