Operator
An operator is a symbol or keyword in source code that represents a built-in function.
Related concepts: Function
Closest Wikipedia entry: Operator (computer programming)
Misconceptions about Operator30 documented Misconceptions
Check YourselfArithmeticPlusPrecedes — Java
Addition has higher precedence than string concatenationArrayAccessWithParentheses — Java
Parentheses are used to access an element in an arrayAssignCompares — Java
= compares two valuesAssignmentNotExpression — Java
An assignment a=b is not an expressionCannotChainMemberAccesses — Java
Member accesses cannot be chained togetherCannotChainMemberToConstructor — Java
Method calls or field accesses cannot be chained to a constructor invocationComparisonWithBooleanLiteral — Java
To test whether an expression is true or false, one must compare it to true or to falseEqualityOperatorComparesObjectsValues — Java
o==p compares the objects referred to by variables o and pMapToBooleanWithConditionalOperator — Java
To map a boolean expression to a boolean, a conditional operator is necessaryNoAtomicExpression — Java
Expressions must consist of more than one pieceNoShortCircuit — Java
&& and || always evaluate both operandsNoSingleLogicAnd — Java
& is only a bitwise ANDPreIncrementBeforeLoop — Java
Pre-increment in update part of for loop means increment before loop bodyRightToLeftChaining — Java
Chained accesses are invoked from right to leftStringPlusStringifiesExpression — Java
String concatenation stringifies non-String operand expressionsConditionalOperatorNotExpression — JavaScript
The conditional operator is not an expressionEqualityOperatorComparesObjectsValues — JavaScript
The equality operator compares two objects' valuesEqualityOperatorComparesOnlyTypes — JavaScript
The equality operator '==' compares only the types of the operandsNoAtomicExpression — JavaScript
Expressions must consist of more than one pieceAssignCompares — Python
= compares two valuesCannotChainAttributeAccesses — Python
Attribute accesses cannot be chained togetherCannotChainAttributeToObjectInstantiation — Python
Method calls, and attribute accesses in general, cannot be chained to a constructor invocation.ComparisonWithBoolLiteral — Python
To test whether an expression is True or False, one must compare it to True or to FalseMapToBooleanWithTernaryOperator — Python
To map a boolean expression to a bool, a ternary conditional operator is necessaryNoAtomicExpression — Python
Expressions must consist of more than one pieceNoShortCircuit — Python
and/or always evaluate both operandsNoSingleLogicAnd — Python
& is only a bitwise ANDPlusConcatenatesNumbers — Python
The plus operator can concatenate strings and numbersCompareBooleanToConstant — Scratch
To test whether an expression evaluates to true or false, one must compare it to a constantEqualityOperatorComparesOnlyTypes — Scratch
() = () compares only the types of its operands