1/20
Vocabulary flashcards covering Java operators, expression types, operator precedence, type conversions, and console output methods from Grade 9 Chapter 5 notes.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Increment Operator (++)
An operator symbol (++), which increases the value of a variable by 1 (equivalent construct: x = x + 1).
Decrement Operator (--)
An operator symbol (--), which decreases the value of a variable by 1 (equivalent construct: x = x - 1).
Prefix Form
A form of increment/decrement operator that follows the CHANGE-THEN-USE rule, where the variable is first incremented/decremented and then assigned or used.
Postfix Form
A form of increment/decrement operator that follows the USE-THEN-CHANGE rule, where the original value is first assigned or used before the variable is incremented/decremented.
Relational Operators
Binary operators (
Logical Operators
Operators (&&, ||, !) that operate on boolean values to connect two or more conditions to form a single, complex condition.
Logical AND (&&)
A binary logical operator that returns true only if all connected conditions are true.
Logical OR (||)
A binary logical operator that returns true if at least one of the connected conditions is true.
Logical NOT (!)
A unary logical operator that inverts the boolean value of a condition, changing true to false and false to true.
Shorthand Assignment Operators
Operators (such as +=, -=, *=, /=, %=) that combine an arithmetic operation with an assignment statement.
Conditional Operator (?:)
Also known as the ternary operator, it evaluates a condition in the form 'variable = Expression1 ? Expression2 : Expression3', returning Expression2 if true and Expression3 if false.
new Operator
An operator in Java that allocates memory for an object.
dot Operator
An operator in Java used to access individual data members or methods of an object.
Expression
Any valid combination of operators, constants, and variables in Java.
Pure Integer Expression
An arithmetic expression containing all integer type operands.
Real Expression
An arithmetic expression containing only real numbers.
Mixed Expression
An arithmetic expression formed with a mixture of real and integer expressions, where smaller data types are promoted to bigger data types.
Implicit Type Conversion
Automatic type conversion or type promotion performed by the compiler without programmer intervention.
Explicit Type Conversion
Type conversion that uses the unary cast operator to convert data from one type to another by specifying the target type in parentheses before the value.
print Method
A Java method used to display text on the console that leaves the cursor on the same line and requires arguments to avoid a syntax error.
println Method
A Java method used to display text on the console that moves the cursor to the next line and can work without arguments.