Tutorials

# Using Operators in JSP

In mathematics, an operator is a function, usually of a special kind depending on the topic.

In mathematics, an operator is a function, usually of a special kind depending on the topic.

# Using Operators in JSP

In mathematics, an operator is a function, usually of a special kind depending on the topic. An operator is a function that acts on functions to produce other functions. A operator symbol or operator name is a notation that denotes a particular operator.

There are many types of operators.

 postfix operator      var++, var-- unary     ++var, --var, +var, -var,  ! , � multiplicative    *, /, % additive       +, - shift       <<, >>, >>> relational      < >, <=, >=, instanceof equality         = =, != bitwise AND     & logical AND        && logical OR       `|` `|` bitwise exclusive OR      ^ bitwise inclusive OR    ` `   `|`  ternary      ?, : assignment       =, +=, -=, /=, *=, %=, ^=, `|=, <<=, >>=, >>>=`

`The code of the program is given below:`

 ``` Using Operators in Jsp ``` ```

Using Operators in Jsp

<% int Operator1 = 23, operartor2 = 40, SumOper;``` ` SumOper = Operator1 + operartor2 ;` ``` out.println(Operator1 + " + " + operartor2 + " = " + SumOper); %>
<% int Operator3 = 3, operartor4 = 4, MulOper;``` ` MulOper = Operator1 * operartor2 ;` ``` out.println(Operator1 + " * " + operartor2 + " = " + MulOper); %>

```

Output of the Program: 