Primitive Types & Sizes

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/8

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

9 Terms

1
New cards

byte

8 bits (1 byte); range: -128 to 127

2
New cards

short

16 bits (2 bytes); range: -32,768 to 32,767

3
New cards

int

32 bits (4 bytes); range: -2³¹ to 2³¹–1

4
New cards

long

64 bits (8 bytes); range: -2⁶³ to 2⁶³–1; suffix L or l

5
New cards

float

32 bits (4 bytes); ~6–7 decimal digits; suffix F or f

6
New cards

double

64 bits (8 bytes); ~15 decimal digits

7
New cards

char

6 bits (2 bytes); single Unicode character (e.g., 'A', '9', '\n')

8
New cards

boolean

true or false

9
New cards

Primitive types in Java

byte, short, int, long, float, double, char, boolean