Few more Operators in Java

Prefix :When increment or decrement operators are applied before the operant ,it is known as prefix operators.
Postfix : When increment or decrement operators are applied after the operant ,it is known as prefix operators.
Increment Operator :Increment operator increases the value of operand by one.
Decrement Operator : Decrement operator decreases the value of operand by one.
Erythematic Operator :An Operator which performs arithmetic functions is known as Erythematic Operator.
Logical Operator :These Operator yield results in 0 and 1 depending upon the outcome of the result. They check between two variables or values.
Relational Operators : Operators which are used to show or check relationship between operands are known as relational operators.
Precedence of operators : Specific  order in which the operators in an expression are evaluated when the expression has several .
Bitwise Operator : The Bitwise operators calculate each bit of their result by comparing the corresponding bits of the two operands.(a) the AND operator &(b) The OR operator |(c) The XOR operator ^(d) The compliment operator ~.

Comments

Popular posts from this blog

A school has following rules for grading system: a. Below 25 - F b. 25 to 45 - E c. 45 to 50 - D d. 50 to 60 - C e. 60 to 80 - B f. Above 80 - A Ask user to enter marks and print the corresponding grade.

Write Java program to allow the user to input his/her age. Then the program will show if the person is eligible to vote. A person who is eligible to vote must be older than or equal to 18 years old.

A Computer Salesman gets commission on the following basis using Java