Java Variables and Data Types Flashcards

1
Q

Used to store up temporary data to be used in our programs run time

A

Variables

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

Stores text such as “hello”. It is surrounded by double-quotes.

A

String

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

Stores integers (whole numbers), Without decimal such as 123 or - 123

A

int

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

Stores floating-point numbers, with decimal such as 19.99 or -19.99

A

float

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

Store single characters such as ‘a’ or ‘B’. Char values are surrounded by single quotes

A

char

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

Stores value with two states: true or false

A

boolean

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

The type of data inside our variable.

A

Data Types

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

Name of the variable that the programmer indicated. It is used to read and write the variable.

A

Identifiers

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

The process of joining strings together with the + operator

A

Concatenation

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

Classes are treated as data types however, there are data types that are not classes. What are they called?

A

Base Types

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