(Introduction)
This is denoted by /* */
What is a Multiline Comment?
The type of variable that cannot be changed.
What is a constant?
The code used to get the next integer input from the user.
What is a "scan.nextInt();"?
This logical operator is used to check if two values are not equal.
What is a "!="?
System.out.println ("Hello World again\n\n" + phrase + "\n\" + new Date() );
System.out.println ("Hello World again\n\n" + phrase + "\n" + new Date() );
The escape character sequence used to insert a tab character.
What is a "\t"?
What is an increment operator or "++"?
This holds the address for an object.
What is a reference?
T T - T
T F - F
F T - F
F F - F
What is a "&&" or and?
lowerStr = String.toLower(str);
lowerStr = str.toLowerCase();
A compiler like that parses through the code line by line.
What is an Interpreter?
This is the largest primitive variable that cannot hold decimal points.
The method used to find the first occurrence of a String in another String.
What is a ".indexOf(String_to_Find)"?
A conditional statement that parses through multiple values of a condition and runs the block of code on the matching one.
What is a switch statement?
Words that have a special meaning or purpose attached to them, cannot be used as identifier names.
What are Reserved Words?
The explicit conversion of one value type to another (regardless of promotion or demotion)
What is Casting?
The action of periodically returning the memory allocated to an object back to the system.
The conditional statement which runs a block of code if the condition is true.
What is an if statement?
val1 = scan.nextInt(); // input first value
val2 = scan.nextInt(); // second value
// calculate average
average = val1 + val2 / 2;
val1 = scan.nextDouble(); // input first value
val2 = scan.nextDouble(); // second value
// calculate average
average = val1 + val2 / 2;
The type of error when you divide by 0.
What is a Runtime Error?
The correct order of precedence amongst these operators:
%, +(string concatenation), =, /, *, _, +(addition)
What is
* --> / --> % --> +(addition) --> - --> +(string concatenation) --> =
The term used to refer to a String for not being able to make change its data.
What is Immutable?
A programming construct that allows a block of code to be executed repeatedly until a certain condition is met or it has executed a set number of time.
What is a For Loop?
strA = str.substring(4,11); // from index 4 to 11
strA = str.substring(4,12); // from index 4 to 11