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?
This means the method belongs to the Main class and not an object of the Main class
What is static?
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?
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
OOP is short for this!
Object Oriented Programming
This type of conditional is a more concise way of writing a traditional if/else statement.
This modifier makes code only accessible within the declared class.
What is private?
This is called when an object of a class is created. It can be used to set initial values for object attributes.
Constructor
its a type of method that returns the value of a class attribute
What is a getter or accessor method
This translates Java code into bytecode.
What is the Java compiler?
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?
This modifier makes code accessible in the same package and subclasses
What is a protected modifier?
This means that this method does not have a return value
What is void?
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
This is an interpreter that translates and executes bytecode.
What is the Java Virtual Machine (JVM)?
This type of equality check looks for the equality of the reference location of two pieces of data.
What is == ?
The code is accessible for all classes
What is public?
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";
}
Within a class definition, it is the name for the calling object.
What is "this"
This type of code runs on any machine that has the JVM (Hint: what Java is compiled into)
Java Bytecode
This type of equality check uses an object's methods to compare itself to another piece of data.
What is .equals()?
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?
multiple methods can have the same name with different parameters
What is method overloading?
group related classes
Think of it as a folder in a file directory
What is a package
The founder and lead designer of Java.
James Gosling