Every line in Java ends with one of these terminating characters.
What is ;?
This operator adds together two numbers.
What is +?
String message = "Hello";
System.out.println(message)
There is no semicolon in the print line.
The rules of how to write a programming language. Also called the grammar of a language.
What is Syntax?
This primitive type can only hold positive and negative integers.
What is int?
This is how you write single and multiline comments in Java.
What is // and /* */?
This operator allows you to assign a value to a variable.
What is =?
string message = "Hello, World!";
System.out.println(message);
String is not capitalized.
This programming concept is referenced to be similar to a recipe.
What is an algorithm?
Holding only two bytes of data, this primitive type holds a value surrounded by single quotes.
What is char?
This is responsible for memory management and running your Java program.
What is the Java Virtual Machine (JVM)
This operator divides a number and returns the remainder.
What is modulo (%)?
boolean goHome = true;
if (goHome = true) {
System.out.println("I went home");
} if else (goHome = false) {
System.out.println("I stayed at work");
}
both if statements need to use == or can just be replaced with a boolean. There's no such thing as if else, it's else if.
These are the reserved words by a language.
What are keywords?
This reference type holds multiple characters.
What is String?
The entry point function for all Java programs
What is public static void main(String[] args) {}?
This neat assignment operator takes an existing variable and will multiply it by whatever you pass in.
What is *=?
class App {
public void main(String[] args) {
System.out.println("Hello, World");
}
}
These are user invented tokens used by programmers to name various in-program constructs such as variables.
What are Identifiers?
This primitive type can be referred to as a yes or no, 1 or 0, and is used for making decisions.
What is a boolean?
This is the language is Java's syntax based off of.
What is C?
These operators can add or subtract 1 to any number
What is ++ and --?
double float = 12.3;
if (float >= 12.3) {
System.out.print("And I said, "That's my salad"");
} else {
System.out.print("We are eating mice tonight...");
float is reserved and can't be a variable name. You can't have multiple double quotes in System.out.print(). else has no closing curly brace.
This tool is responsible for taking your code written in a high-level language and translating it down into machine code that your computer can run.
What is the compiler?
This data type has twice the precision as a normal float and holds fractional values.
What is a double?