What is Operator precedence? | SoloLearn: Learn to code for FREE!


What is Operator precedence?

according to operator precedence, we can choose which mathematical operation will occur First!

6/18/2017 4:41:49 AM

vaishnavi pandey

3 Answers

New Answer


Operator precedence determines the order in which operators are evaluated. Operators with higher precedence are evaluated first. consider this: (2+2)*9 = 4*9 = 36 2+2*9 = 2+18 = 20 Because () have more precedence than + and *


Ehhh not really 'choose', more or less 'make' with use of brackets. It's just like math with the: first brackets, then exponents, then division, etc.. You can see the order in the chart shown here: http://introcs.cs.princeton.edu/java/11precedence/ This is for Java though, some languages might be ever so slightly different.


I think Java... and oops both are beneficial for startup.