Core Java Tutorial

Define Java

C vs C++ vs Java

Java Virtual Machine

Java First Program

Java Data Types

Java Tokens

Java Keywords

Java Operators

Operator Precedence

Java Type Casting

Java Statement

Java If statement

Java Switch statement

Java Loops

Java Jumping Statement

Java Arrays 1D

Java Arrays 2D

Java Variable Size Array

Java Vector

Java Math Methods

Java String Methods

Java String Buffer

User-Defined Method

Java Method Overloading

Java Class & Object

Java Constructor

Java Inheritance

Java Interface

Java Packages

Java Multi-threading

Exceptional Handling

File Handling

Java Applets

Java DataBase Connectivity

Page Stats

Visitor: 285

Java Operators

An operator is a symbol that takes one or more arguments and operates on them to produce a result.

Java built-in operators are of following types:
S.No. Operator Name Operator Symbol
1. Arithmetic Operators
2. Comparison/Relational Operators
>Greater than
<Less than
>=Greater than equals to
<=Less than equals to
!=Not equals to
==Equals to
3. Logical Operators
4. Assignment Operator
5. Compound Assignment Operators
+=Add and Assignment
−=Subtract and Assignment
*=Multiply and Assignment
/=Divide and Assignment
%=Modules and Assignment
6. Increment/Decrement Operator
a++Post Increment
++aPre Increment
a--Post Decrement
--aPre Decrement
7. Conditional or Ternary Operator
? :
8. Bitwise Operators
>>Left Shift
<<Right Shift
^Exclusive OR
9. InstanceOf the instance of is an object reference operator that allow us to determine whether the object belongs to a particular class or not. The instance of operator return true if the object is an instance of a class