Primitive Data Types in Java

¡Supera tus tareas y exámenes ahora con Quizwiz!

double

8 bytes - Stores fractional numbers. Sufficient for storing 15 decimal digits.

long

8 bytes - stores whole numbers from about -9.2 quintillion to 9.2 quintillion

boolean

1 bit - Stores true or false values

byte

1 byte - stores whole numbers from -128 to 127

char

2 bytes - Stores a single character/letter or ASCII values.

short

2 bytes - stores whole numbers from about -32k to 32k

float

4 bytes - Stores fractional numbers. Sufficient for storing 6 to 7 decimal digits

int

4 bytes - stores whole numbers from about -2.1 billion to 2.1 billion


Conjuntos de estudio relacionados

PAN-OS 10.0 - Threat and Traffic Information

View Set

Gen Principles of Taxation Reviewer

View Set

BISC 104 Mastering Biology Chapter 20.1 and 20.2 (partial)

View Set

Biology Exam 1.2 (Atoms and Biological Molecules)

View Set

Developing a Positive Attitude for Physical Education

View Set

InDesign Certification Questions

View Set

Nutrition Therpay II FINAL: Chapter 2

View Set

Strategic Management Ch 1-4: Exam 1

View Set