Logical Operators
Can be used to connect boolean expressions to make more complex expression. NOT ! AND && OR ||
Short Circuit Evaluation
When the result of a logical expression using && or || can be determined by evaluating only the first Boolean operand, the second is not evaluated.
Nested if Statements
The process of placing if statements within if statements.
Truth Tables
A truth table is a table used in logic for comparing Boolean expressions.
Aliases
Two object references are considered aliases when they both reference the same object.
Reference equality
Equality operator (==) compares the references (addresses in memory) of 2 objects
Logical equality
Compares the data of the objects instead of the value of the references. Uses the .equals() method.
Relational Operators
== , !=. <. > , <=, >= These allow for the comparison or primitive type values. The result of these expressions can be stored as a Boolean value.
If Statement
An if statement lets you ask a question to the program and only run code if the answer is true.
Control Structure
A control structure lets us change the flow of the code.
Conditional Statement
A statement that evaluates to true or false.
If Else Statement
Control structure that lets us run either one section of code or another depending on a test.
Control Structure
A control structure lets us change the flow of the code.
else statement
Executes code only if all conditions are false
Condition
A condition is code that you put inside an if statement or while-loop.
else if Statement
A statement that executes if the previous statements are false and this statement is true