Checking Operator Precedence
Like every other language, Java will execute a formula in parenthesis first and in the order */+-
Example:
<%
Integer k = 0;
k = (5+5*2)/3;
System.out.println(k);
%>
the result is 5
Like every other language, Java will execute a formula in parenthesis first and in the order */+-
Example:
<%
Integer k = 0;
k = (5+5*2)/3;
System.out.println(k);
%>
the result is 5