The following link may be of help:
JLS 15.25 Conditional Operator ? : Amazing how a simple piece of code can be of tremendous help
Output: 10,2,3,40
which means only the relevant operand is evaluated
HIH
[ February 10, 2002: Message edited by: Valentin Crettaz ]