This method is required in all Java programs: public static void ______ (String[] args) { ... }
What is main?
The purpose of the "||" operator.
What is a logical or?
True or False: void returns a value.
What is false?
Java's logo.
What is a cup of coffee?
The output of:
if (5 * 7 < 4 * 9) return true; else return false;
What is true?
The combination of two strings together (and the operator you use).
What is concatenation and the "+" operator?
This single symbol is known as the statement terminator.
What is a semicolon?
____ is a keyword that comes after an if statement when the first if statement is not ran.
What is else if or else?
This popular video game is made in Java.
What is Minecraft?
This method prints something out to the console.
What is System.out.println() or System.out.print()?
The purpose of the modulus operator (%).
What is the remainder of a division of two numbers?
The Java syntax for creating a single line comment
What are two forward slashes?
//
This Java keyword is used to skip the rest of the code inside of a loop and immediately proceed with the next iteration.
What is "continue"?
This is the current version of Java.
What is Java 23?
The length of the string of “John is so awesome”.
What is 18?
This operator compares two things in Java.
What is ==?
What is b in the following code? int[] b = new int[10];
What is an integer array of size 10?
This Java keyword is used to immediately terminate the execution of a loop, executing the next section of code after the loop.
What is "break"?
This is where the name "Java" comes from.
What is the island of Java in Indonesia?
The names of 3 primitive data types for numbers in Java.
What is short/long/int/float/double?
Create the beginning of a for loop that starts at 10 and goes down to (and includes) 0.
for (int i = 10; i >= 0; i--) { ... }
This is what happens if "static" is left out of public static void main(String[] args) and why.
What is a compilation error?
It would require an instance of the main class to be created before execution, which contradicts the point of the main() method being the entry point of the program.
How many lines does this code print?
for (int i = 1; i <= 2; i++) {
System.out.println("Outer: " + i);
for (int j = 1; j <= 3; j++) {
System.out.println(" Inner: " + j);
}
}
What is 8?
This is when Java was invented. +/- 3 years
What is 1995?