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
2
Q
Class
A
everything in Java written inside a class blueprint used to define objects real-world objects/app components
3
Q
Variables
A
the state of an object
4
Q
methods
A
behavior an object can take
5
Q
constructor
A
initialize the state of a class default (no-arg)
6
Q
byte
A
-128 to 127
7
Q
short
A
-32768 to 32767
8
Q
int
A
-2^31 to 2^31
9
Q
long
A
-2^64 to 2^64
long var = 123L;
10
Q
float
A
single precision
float var = 1984f;
11
Q
double
A
double precision
12
Q
char
A
single character
13
Q
boolean
A
true/false
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