Evaluation order and Java method calls

Adaptive Server does not have a defined order for evaluating operands of comparisons and other operations. Instead, Adaptive Server evaluates each query and chooses an evaluation order based on the most rapid rate of execution.

This section describes how different evaluation orders affect the outcome when you pass columns or variables and parameters as arguments. The examples in this section use the following Java-SQL class:

public class Utility implements java.io.Serializable {
 		public static int F (Address A) {
 			if (A.zip.length( ) > 5) return 0;
 			else {A.zip = A.zip + "-1234"; return 1;}
		}
 		public static int G (Address A) {
 			if (A.zip.length( ) > 5) return 0;
 			else {A.zip = A.zip + "-1234"; return 1;}
		}
}