Chapter 1 - Intro Flashcards
1
Q
The way java works for writing one application
A
Source -> Compiler -> Bytecode -> JVM
2
Q
Where do you put methods
A
In a class
3
Q
Where do you put statements
A
In a method. Method code is basically a set of statements.
4
Q
Where does your program start running
A
in the main method
5
Q
What are javas three standard looping constructs
A
while, do-while, and for
6
Q
In Java what is a conditional test?
A
An expression that results in a boolean value. It’s either true or false.
7
Q
The assignment operator
A
one equals sign =
8
Q
Where do you put a boolean test?
A
inside parentheses while (x == 4) { }