why in the below example the value of i is not incrementing. Output is always zero o.
The ++ operator have higher precedence. So this should first increment the value of i and then use is the rule.
public static void main(String args)
int i = 0;
if(i > 0 && ++i < 10)
System.out.println("Inside if" );