data structures using note it is not possible to divide any number by zero this is an illegal operation that results in run-time division-by-zero exception thereby terminating the program except for modulus operatorall other arithmetic operators can accept mix of integer and floating point numbers if both operands are integersthe result will be an integerif one or both operands are floating point numbers then the result would be floating point number all the arithmetic operators bind from left to right multiplicationdivisionand modulus operators have higher precedence over addition and subtraction operators thusif an arithmetic expression consists of mix of operatorsthen multiplicationdivisionand modulus will be carried out first in left to right orderbefore any addition and subtraction can be performed for example relational operators relational operatoralso known as comparison operatoris an operator that compares two values or expressions relational operators return true or false valuedepending on whether the conditional relationship between the two operands holds or not table relational operators for exampleto test if is less than operator meaning example relational operator is used as this expression will return true value if is less than less than gives yotherwise the value of the expression will greater than gives be false provides four relational operators <less than or equal to < gives which are illustrated in table these >greater than equal to >= gives operators are evaluated from left to right equality operators language also supports two equality operators to compare operands for strict equality or inequality they are equal to (==and not equal to (!=operators the equality operators have lower precedence than the relational operators table equality operators the equal-to operator (==returns true ( if operands operator meaning on both sides of the operator have the same valueotherwiseit returns false ( on the contrarythe not=returns if both operands are equal otherwise equal-to operator (!=returns true ( if the operands do !returns if operands do not not have the same valueelse it returns false ( table have the same value otherwise summarizes equality operators logical operators language supports three logical operators they are logical and (&&)logical or (||)and logical not (!as in case of arithmetic expressionslogical expressions are evaluated from left to right table truth table of logical and & logical and (&&logical and is binary operatorwhich simultaneously evaluates two values or relational expressions if both the operands are truethen the whole expression is true if both or one of the operands is falsethen the whole expression evaluates to false the truth table of logical and operator is given in table