Chapter 1 - Intro Flashcards

1
Q

The way java works for writing one application

A

Source -> Compiler -> Bytecode -> JVM

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

Where do you put methods

A

In a class

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

Where do you put statements

A

In a method. Method code is basically a set of statements.

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

Where does your program start running

A

in the main method

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

What are javas three standard looping constructs

A

while, do-while, and for

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

In Java what is a conditional test?

A

An expression that results in a boolean value. It’s either true or false.

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

The assignment operator

A

one equals sign =

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

Where do you put a boolean test?

A

inside parentheses while (x == 4) { }

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