In Java , the objects on which the operators act upon are called the ..............
Answers
Answer:
Java provides a rich operator environment. We can classify the basic operators in java in the following groups:
Arithmetic Operators
Relational Operators
Bitwise Operators
Assignment Operators
Logical Operators
Let us now learn about each of these operators in details.
Arithmetic Operators: Arithmetic operators are used to perform arithmetic/mathematical operations on operands.
Addition (‘+’) : Adds two operands
Subtraction (‘-‘): Subtracts two operands
Multiplication (‘*’): Multiplies two operands
Division (‘/’): Divides the first operand by the second.
Modulus (‘%’): Returns the remainder when first operand is divided by the second
Increment (‘++’): Increment the value of an integer. When placed before the variable name (also called pre-increment operator), its value is incremented instantly. For example, ++x.And when it is placed after the variable name (also called post-increment operator), its value is preserved temporarily until the execution of this statement and it gets updated before the execution of the next statement. For example, x++.
Decrement (‘–‘): Decrement the value of an integer. When placed before the variable name (also called pre-decrement operator), its value is decremented instantly. For example, –x.
And when it is placed after the variable name (also called post-decrement operator), its value is preserved temporarily until the execution of this statement and it gets updated before the execution of the next statement
Explanation: