Home
Flashcards
Preview
Java Midterm 2
Home
Get App
Take Quiz
Create
What is the String Class?
holds a series of characters
Class names should always begin with a _____
Upper Case.
What is the increment and decrement operators for loops?
number++ OR ++number
number-- OR --number
what is the difference between ++# and #++?
pre = increment before rest of equation is evaluated.
post = increment after equation has been evaluated.
what is the syntax of while loop?
while (condition)
{
statement1;
statement2
;statement3;
}
Describe: while (condition)
{
statement1;
statement2;
statement3;
}
will repeat while condition is true.
while loop will test the condition ________ executing the loop.
before
What is the syntax of the do while loop?
do
{
statement(s);
}
while (condition);
The do-while loop will execute the loop _______ testing the condition
before
What is the syntax of the for loop?
for (initialization; test; update)
{
statement(s);
}
The for loop will execute the loop ______ the testing the condition
after (pre-test)
The ______ section allows the loop to initialize its own control variable.
initialiazation
The _____ setion of the for statement acts in the same manner as the condition section of a while loop.
test
The ____________ section of the for loop is the last thing to execute at the end of each loop.
update
What are nested loops?
the inner loop will execute it's each time the outer loop executes once.
Author
gianni11
ID
207389
Card Set
Java Midterm 2
Description
midterm 2
Updated
2013-03-15T04:09:10Z
Show Answers
Home
Flashcards
Preview