Midter Reviewer Flashcards
It test the condition before executing the loop body
While loop
Terminate the loop or switch statement
Break statement
The variable will be available within tue for block and its value would be the same as the current array element
Declaration
Like a while statement except that it tests the condition at the end of the loop body
Do while loop
It can be array variable or method call that returns an array
Expression
Consists of a boolean expression followed by one or more statement
If statement
It is a function to compare this number object to the arguments.
CompareTo()
A_________statement allows us to execute a statement or group of statements multiple times
Loop
Execute a sequence of statements multiple times and abbreviates the code that management the loop variable
For loop
Causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating
Continue statement
You can use one if or else if statement inside another it or else if statement(s)
Nested if statement
What are the 4types of decision making
If statement
If else statement
Nested if statement
Switch statement
What are the 3 types of loop controls
For loop
While loop
Do while loop
Give at least 4 number methoda
XxxValue()
ToString()
Equal()
CompareTo()
Variable defined inside methods, constructors or blocks,
Local variables
A line of code that would ask the compiler to load all the classes available in directory java_installation/java/io.
Import java.io*;
A______ is a source code representation of a fixed value
Literals
Are variables within a class but outside any method
Instance variable
A_____provides us with named storage that our program can manipulate
Variable
What are the 3step when create an object class
Declaration
Instantiation
Initialization