Which Java operator is right associative?

The = operator is right associative.

In Core Java, none of the operators are right-associative. All Java operators are left-associative, which means that they are evaluated from left to right when they have the same precedence.

Right-associative operators would be evaluated from right to left, but Java does not have such operators.

In Core Java, the assignment operator (=) is right-associative. Right-associative means that when multiple assignment operators of the same precedence appear in an expression, they are evaluated from right to left.

For example:

java
int a, b, c;
a = b = c = 10;

In this example, the value 10 is assigned to c, then the value of c is assigned to b, and finally, the value of b is assigned to a. The right-associativity of the assignment operator determines the order of evaluation in this chain.