Conditionals
Modifiers
Methods
Classes
Potpourri
100

This type of conditional statement checks at least one condition and pending the result of evaluating that condition executes one of two distinct code blocks.

What is if/else?

100

This means the method belongs to the Main class and not an object of the Main class

What is static?

100

a block of code which only runs when it is called.

You can pass data, known as parameters.
Also known as functions.

What is a method?

100

It contains instance variables for an object, and had method definitions that the object can peform. //Hint: You can pay for school, but you can't buy this.

What is a Class

100

OOP is short for this!

Object Oriented Programming

200

This type of conditional is a more concise way of writing a traditional if/else statement.

What is the ternary operator?
200

This modifier makes code only accessible within the declared class.

What is private?

200

This is called when an object of a class is created. It can be used to set initial values for object attributes.

Constructor

200

its a type of method that returns the value of a class attribute

What is a getter or accessor method

200

This translates Java code into bytecode.

What is the Java compiler?

300

This type of conditional allows you to check the value of something against any number of possible cases, and execute a code block based on which case is triggered.

What is a switch statement?

300

This modifier makes code accessible in the same package and subclasses

What is a protected modifier?

300

This means that this method does not have a return value

What is void?

300

it's a type of method that lets you set the value of one of your Class attributes

What is a setter or mutator method

300

This is an interpreter that translates and executes bytecode.

What is the Java Virtual Machine (JVM)?

400

This type of equality check looks for the equality of the reference location of two pieces of data.

What is == ?

400

The code is accessible for all classes

What is public?

400

This is a parameter-less constructor for a class called MyClass that initializes a field called name to the value "Jamie".

public MyClass() {

name = "Jamie";

}

400

Within a class definition, it is the name for the calling object.

What is "this"

400

This type of code runs on any machine that has the JVM (Hint: what Java is compiled into)

Java Bytecode

500

This type of equality check uses an object's methods to compare itself to another piece of data.

What is .equals()?

500

This modifier can be used to declare a constant variable, prevent method overriding, or prevent the creation of any child classes depending on the context.

What is final?

500

multiple methods can have the same name with different parameters

What is method overloading?

500

group related classes
Think of it as a folder in a file directory

What is a package

500

The founder and lead designer of Java.

James Gosling

M
e
n
u