Truth table: A truth table is a table that shows all possible combinations of inputs for a compound boolean statement and their corresponding outputs (true or false). It helps us understand how the statement behaves under different conditions.
Equals method: The equals method is used to compare two objects for equality in Java. It returns true if the objects have the same values or attributes, and false otherwise.
Logical operators: Logical operators are symbols (such as && for AND, || for OR, and ! for NOT) used to combine or modify boolean values in compound boolean statements. They determine how the overall condition is evaluated.