| Author |
About Ternary operator
|
Richard Wilson
Ranch Hand
Joined: Jan 12, 2002
Posts: 57
|
|
Hi,can anyone tell whether the Ternary operator (?: ) does a full evaluation or a partial evaluation to the operands. [ February 10, 2002: Message edited by: Richard Wilson ]
|
Richard Wilson
|
 |
Valentin Crettaz
Gold Digger
Sheriff
Joined: Aug 26, 2001
Posts: 7610
|
|
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 ]
|
SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
|
 |
 |
|
|
subject: About Ternary operator
|
|
|