Every statement in Java ends with this.
What is a semicolon?
This is the statement used for printing something to the console and leaving a line afterward.
What is System.out.println();?
This data type stores data without decimals and fractions (including negative numbers).
What is an int?
This is 1000--.
What is 999?
Code blocks use this to designate their start and end.
What are curly braces {}?
This is the statement used for printing something to the console and not leaving a line afterward.
What is System.out.print();?
This data type stores text.
What is a string?
This is the value of this code:
int x = 15;
x *= 10;
System.out.println(x);
What is 150?
This goes around strings.
What are quotation marks “”?
This is the term for combining strings in Java.
What is concatenation?
This is the syntax for defining a String variable called myString with the value of Hello World.
What is String myString = "Hello World";
This is 49 % 8.
What is 1?
This is the overall code block that contains all of the code.
What is a class?
Note: Multiple classes can be made for one program, but we won’t go over that in this club.
This is the operator used for combining strings in Java.
What is the + operator?
This is a subdivision of data types that is created by Java. It is a a set of basic types of variables like int, boolean, double, etc.
What is a primitive type?
This is the operator to check if two values are equal.
What is ==?
These are the three words that go before main in the main method.
What are public, static, and void?
This is the result of this code:
public class Main {
public static void main(String[] args) {
int x = 556;
int y = 959;
System.out.println("x + y = " + x + y);
}
}
What is:
x + y = 556959
This is the syntax for defining a character variable called firstLetter with the value of a.
What is char firstLetter = 'a';
This is the result of the following code:
int a = 56;
int b = 65;
int c = 11;
int d = 1;
System.out.println((!(a == b) || (c != d)) && (a <= d));
What is false?