
Play Store Application link – https://play.google.com/store/apps/details?id=com.ideepro.java25hours
Learn with our youtube video
💡Definition
-Set of symbols to perform specific operation.
💡Operators Categories-
Quick Overview of various operators in java-
Operator | Description | Example |
---|---|---|
+ | Addition | 5 + 2 |
- | Subtraction | 5 - 2 |
* | Multiplication | 5 * 2 |
/ | Division | 5 / 2 |
% | Modulus (remainder) | 5 % 2 |
++ | Increment | i++ |
-- | Decrement | i-- |
== | Equal to | a == b |
!= | Not equal to | a != b |
> | Greater than | a > b |
< | Less than | a < b |
>= | Greater than or equal to | a >= b |
<= | Less than or equal to | a <= b |
&& | Logical and | a && b |
|| | Logical or | a || b |
! | Logical not | !a |
instanceof | Determines if an object is an instance of a particular class or implements a particular interface | obj instanceof MyClass |
= | Assignment | a = b |
+= | Addition assignment | a += b |
-= | Subtraction assignment | a -= b |
*= | Multiplication assignment | a *= b |
/= | Division assignment | a /= b |
%= | Modulus assignment | a %= b |
? : | Ternary (conditional) operator | a ? b : c |
💡1-Arithmetic and Assignment operators-



💡2-Relational operators-


💡3-Logical operators –


💡4-Misc operators ( ?: (if-else-then), instanceof)

Interview Questions —
- What is difference between arithmetic and relational operators
- What is instanceOf operator?