Category: Operators in Java
Operator in Java is a symbol which is used to perform operations. For example: +, -, *, / etc.
There are many types of operators in Java which are given below:
Unary Operator,
Arithmetic Operator,
Shift Operator,
Relational Operator,
Bitwise Operator,
Logical Operator,
Ternary Operator and
Assignment Operator.
Java Unary Operator
=============
The Java unary operators require only one operand. Unary operators are used to perform various operations i.e.:
incrementing/decrementing a value by one
negating an expression
inverting the value of a boolean
Java Arithmetic Operators
=================
Java arithmatic operators are used to perform addition, subtraction, multiplication, and division. They act as basic mathematical operations.
Java Ternary Operator
==============
Java Ternary operator is used as one liner replacement for if-then-else statement and used a lot in Java programming. it is the only conditional operator which takes three operands.
Java Assignment Operator
=================
Java assignment operator is one of the most common operator. It is used to assign the value on its right to the operand on its left.
Posts Not Found
Maybe try a search?