<
W e b t u t o r i a l s

Define Java

Relationship in C, C++ and Java

Java Virtual Machine

Set Java Path

Java Tokens

Reserved Keywords

Identifiers

Literals

Operators

Operator Precedence

Escape Sequences

Java Operators

An operator is a symbol that takes one or more arguments and operates on them to produce a result. Operators are of many types:

SNo Lists Operators
1 Arithmetic Operators + , - , / , * , %
2 Relational Operators > , < , >= , <= , == , !=
3 Logical Operators && , || , !
4 Increment / Decrement Operators Post Increment a++
Pre Increment ++a
Post Decrement a--
Pre Decrement --a
5 Conditional or Ternary Operator ? :
6 Assignment Operator =
7 Compound Assignment Operator +=, -=, *=, /=, %=, >>=, <<=, &=, ||=
8 Bitwise Operators &, |, >>, << , ^

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.