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

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

Explore top flashcards

IPA Symbols
Updated 745d ago
flashcards Flashcards (48)
CISC vs RISC
Updated 701d ago
flashcards Flashcards (22)
collocation 12
Updated 254d ago
flashcards Flashcards (67)
3/22/24 - DNA exam
Updated 591d ago
flashcards Flashcards (25)
SCMA 350 Exam 1
Updated 974d ago
flashcards Flashcards (37)
IPA Symbols
Updated 745d ago
flashcards Flashcards (48)
CISC vs RISC
Updated 701d ago
flashcards Flashcards (22)
collocation 12
Updated 254d ago
flashcards Flashcards (67)
3/22/24 - DNA exam
Updated 591d ago
flashcards Flashcards (25)
SCMA 350 Exam 1
Updated 974d ago
flashcards Flashcards (37)