Programming Flashcards

1
Q
Compiling and running java apps
Java Code
javac cmd
Bytecode file
java cmd
interpreter
machine code
A
.java
javac cmd
.class
java cmd
JVM (uses java interpreter)
lang Mac/Windows/Linux can read
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Class

A
everything in Java written inside a class
blueprint used to define objects
real-world objects/app components
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Variables

A

the state of an object

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

methods

A

behavior an object can take

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

constructor

A
initialize the state of a class
default (no-arg)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

byte

A

-128 to 127

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

short

A

-32768 to 32767

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

int

A

-2^31 to 2^31

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

long

A

-2^64 to 2^64

long var = 123L;

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

float

A

single precision

float var = 1984f;

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

double

A

double precision

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

char

A

single character

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

boolean

A

true/false

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

array

A

multiple values in a single reference variable,
continuous sequential block,
fixed size, access elements by index,
values must be same datatype

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