[java] How does Java deal with multiple conditions inside a single IF statement