Java Arithmetic Expressions

An arithmetic expression consists of operands and operators.

Basic Arithmetic Expression Operators:
  • + Addition
  • - Substraction
  • * Multiplication
  • / Division
If an interger operand is added to a double operand, Java automatically casts the integer data type to a double data type variable in order to retain the decimal values stored in the result variable.

0 comments:

Post a Comment