Java Assignment Operators

Java Assignment Operators

Basic Operators – Java Assignment Operators

Java provides a large quantity of operators to handle variables. The following example is that of Java assignment operators a very common operator encountered within the Java language. Assigning a value to a variable is a fairly straight forward process, it involves giving a value to the variable on the left side of the assignment operator for example “=”.

Read more

Java Logical Operators

Java Logical Operators

Basic Operators – Java Logical Operators

Java provides a large quantity of operators to handle variables. The following example is that of Java logical operators on occasion these operators are referred to as boolean operators. This type of operator returns a boolean result, that is based on the result of one or more expressions.

Read more

Java Bitwise Operators

Java Bitwise Operators

Basic Operators – Java Bitwise Operators

Java provides a large quantity of operators to handle variables. The following example is that of bitwise operators, they comprise of bits and perform bit by bit operations. Java defines numerous bitwise operators which can be utilized in a number of ways, these types include the integer types int, long, short, and byte. Consider the following variables:

Read more

Java Relational Operators

Java Relational Operators

Basic Operators – Java Relational Operators

Java provides a large quantity of operators to handle variables. The following example is that of Java relational operators, this operator compares two operands to determine whether one is greater than, greater than or equal to, less than, less than or equal to the other.

Read more

Java Arithmetic Operators

Java Arithmetic Operators

Basic Operators – Java Arithmetic Operators

Java provides a large quantity of operators to handle variables. The following example is that of arithmetic operators, these are used in mathematical expressions in the same way that they are used in general mathematics. The following table outlines the arithmetic operators:

Read more