Posts

Showing posts with the label relational operators

Operators in java with example programs

Operators are one of the basic and important concept in java. Operator is a symbol that performs an action. An operator act on some variables called operands. Now, you have a doubt called what is the difference between operand and operator. To clear all your queries continue with this article. a + b         In above, example a,b are the operands and + is the operator.  If an operator acts on a single variable is called “ unary operator ”. If an operator acts with two variables is called “ binary operator ”. If an operator works with three variables is called “ternary operator”. This is one type of classification. Arithmetic Operator:         These operators are used to perform fundamental arithmetic operation like addition, subtraction,etc. There are 5 arithmetic operators are there in java. Since these operators work on two operands at a time. These are called binary operators.         Addition operator ...