Java Reference
In-Depth Information
Operatorsarealsoclassifiedasprefix,postfix,andinfix.A
prefix operator
isaunary
operatorthatprecedesitsoperand(asin
-6
),a
postfix operator
isaunaryoperatorthat
trailsitsoperand(asin
x++
),andan
infix operator
isabinaryorternaryoperatorthat
is sandwiched between the binary operator's two or the ternary operator's three oper-
descriptions,andprecedencelevels—theconceptofprecedenceisdiscussedattheend
ofthissection.Variousoperatordescriptionsreferto“integertype,”whichisshorthand
forspecifyinganyofbyteinteger,shortinteger,integer,orlongintegerunless“integer
type”isqualifiedasa32-bitinteger.Also,“numerictype”referstoanyoftheseinteger
types along with floating-point and double precision floating-point.