Java Beans
More JAVA
Java Talk
Java Flow
Java Trivia
100

This method is required in all Java programs: public static void ______ (String[] args) { ... }

What is main?

100

The purpose of the "||" operator.

What is a logical or?

100
'c' is an example of this primitive data type
What is char?
100

True or False: void returns a value.

What is false?

100

Java's logo.

What is a cup of coffee?

200

The output of: 

if (5 * 7 < 4 * 9) return true; else return false;

What is true?

200

The combination of two strings together (and the operator you use).

What is concatenation and the "+" operator?

200

This single symbol is known as the statement terminator.

What is a semicolon?

200

____ is a keyword that comes after an if statement when the first if statement is not ran.

What is else if or else?

200

This popular video game is made in Java.

What is Minecraft?

300

This method prints something out to the console.

What is System.out.println() or System.out.print()?

300

The purpose of the modulus operator (%).

What is the remainder of a division of two numbers?

300

The Java syntax for creating a single line comment

What are two forward slashes?

//

300

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"?

300

This is the current version of Java.

What is Java 23?

400

The length of the string of “John is so awesome”.

What is 18?

400

This operator compares two things in Java.

What is ==?

400

What is b in the following code? int[] b = new int[10];

What is an integer array of size 10?

400

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"?

400

This is where the name "Java" comes from.

What is the island of Java in Indonesia?

500

The names of 3 primitive data types for numbers in Java.

What is short/long/int/float/double?

500

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--) { ... }

500

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.

500

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?

500

This is when Java was invented. +/- 3 years

What is 1995?

M
e
n
u