+ 3
Is operator precedence the same in Java and php?
5 Answers
+ 5
For most common operators yes.
+ 1
Yes aMul 997
Note :
++a =>increments first and then uses the variable.
a++Â =>uses first and then increments the variable.
Example
If you have
a = 1;
//and you do
System.out.println(a++);
// it will print 1
// but value of a is increase by 1. now value of a=2
System.out.println(++a);
//it will print 3 because it's a pre increment
// so it will print 3
0
ahf
- 1
idk
- 2
That is a standard
Parenthesis ()
Multiplication / division
Addition / subtraction