15.17. Multiplicative Operators
The operators *
, /
, and %
are called the multiplicative operators.
MultiplicativeExpression: UnaryExpression MultiplicativeExpression *
UnaryExpression MultiplicativeExpression /
UnaryExpression MultiplicativeExpression %
UnaryExpression
The multiplicative operators have the same precedence and are syntactically left-associative (they group left-to-right).
The type of each of the operands of a multiplicative operator must be a type that is convertible (§5.1.8) to a primitive numeric type, or a compile-time error occurs.
Binary numeric promotion is performed on the operands (§5.6.2).
Note that binary numeric promotion performs value set conversion (§5.1.13) and may perform unboxing conversion (§
Get The Java® Language Specification, Java SE 7 Edition, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.