I am having trouble understanding order of operations in Java. Isn't arithmetic operator evaluated before relational. If so, why does this code run without error? Shouldn't y/z be evaluated first, causing an Arithmetic exception.
public static void main(String[] args) {
// TODO Auto-generated method stub
int x = 10;
int y = 20;
int z = 0;
if(x>y && 10 < y/z) {
System.out.print("Homer");
}
}