U2: Data Types Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Primitive Data Types

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

Categories of Primitive Data

A
  • Integers: byte; short; int; long
  • Decimals: float and double
  • Others: char and boolean
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

short

A
  • 16-bit signed two’s complement integer
  • Range: -32,768 to 32,767
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

byte

A
  • 8 bit signed two’s complement integer
  • Range: -128 to 127
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

int

A
  • 32-bit signed two’s complement integer
  • Range: -2,747,483,648 to 2,747,483,647
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

long

A
  • 64-bit signed two’s complement integer
  • Range: -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

float

A
  • 32-bit IEEE 754 floating point
  • Range: -3.4 x 10^38 to 3.4 x 10^38
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

double

A
  • 64-bit IEEE 754 floating point
  • Range: -1.7 x 10^308 to 1.7 x 10^308
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

char

A
  • single 16-bit Unicode character
  • Range: 0 - 65,565
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

boolean

A

True or False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Categories of Data in Java

A
  • Primitives
  • Objects (customized data type created from Classes)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly