Primitive Values, Wrapper Classes and Types — Class 11 ISC Computer Science revision notes
A 4-page visual revision sheet for Primitive Values, Wrapper Classes and Types, written for Class 11 ISC Computer Science. Formulas, diagrams and the traps that cost marks, laid out to be read the night before rather than the term before. Free, and it opens inside CapCompass.
Page 1 as PDFA preview of page 1 — all 4 pages open full size in the app.
Primitive Values, Wrapper Classes and Types in one look
the eight raw types Java stores directly, and the classes built around each one
The eight primitive types
Java has exactly eight primitive types, and every one of them stores its value directly, not a reference to an object holding it
four are whole numbers of growing size: byte, short, int and long
two are numbers with a fractional part: float and double
char stores one single character, and boolean stores only true or false
Size and range, the numbers an exam actually asks for
Type
Size
Range or note
byte
1 byte
-128 to 127
short
2 bytes
-32768 to 32767
int
4 bytes
about -2.1 billion to 2.1 billion
long
8 bytes
far larger than int, written with an L suffix
float
4 bytes
fewer significant digits, written with an F suffix
double
8 bytes
the default for decimals, more significant digits than float
char
2 bytes
one character, unicode
boolean
not fixed by the language
true or false only
Bit width, drawn as one row
a byte's eight bits are all the storage it gets, so its range is fixed by exactly how many patterns eight bits can hold
a wider type is simply more of the same row, more bits and so more distinct patterns to represent a bigger range
Page 1 of 4. The full sheet, all 4 pages, opens free in the app.
What this Primitive Values, Wrapper Classes and Types sheet covers
The eight primitive types
Size and range, the numbers an exam actually asks for
Bit width, drawn as one row
Primitive against reference, the split every type falls on
These notes are not a standalone PDF. CapCompass plans Computer Science chapter by chapter against your real exam dates and free hours, and when the plan reaches Primitive Values, Wrapper Classes and Types the sheet opens inside the study block itself — at the page covering the sub-topic that block is on, with the timer still running. Revision arrives at the moment the plan says revise, instead of having to be gone looking for.