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: 262

Java Operator Precedence and Associatively

The Priority or Precedence in which the operators are to be performed is known as operator precedence. The associativity specifies the operators direction to be evaluated, it may be left-to-right or right-to-left.

Rank Operator Associatively
() , [] Left to Right
++ , -- Right to Left
* , / , % Left to Right
+ , - Left to Right
<< , >> , >>> Left to Right
< , <= , > , >= Left to Right
== , != Left to Right
& Left to Right
^ (XOR) Left to Right
| Left to Right
&& Left to Right
|| Left to Right
? : Right to Left
= Right to Left