Hello,
I am stumped by a single topic question in Dan's excellent mock exams. I literally cannot understand the boolean = statements. Could someone help?
Here is the Q and A:
Question 14
class EBH023 {
static
String m1(boolean b){return b?"T":"F";}
public static void main(String [] args) {
boolean b1 = false?false:true?false:true?false:true;
boolean b2 = false?false

true?false

true?false:true));
boolean b3 = ((false?false:true)?false:true)?false:true;
System.out.println(m1(b1) + m1(b2) + m1(b3));
}}
What is the result of attempting to compile and run the program?
a. Prints: FFF
b. Prints: FFT
c. Prints: FTF
d. Prints: FTT
e. Prints: TFF
f. Prints: TFT
g. Prints: TTF
h. Prints: TTT
i. Run-time error
j. Compile-time error
k. None of the above
Answer:
14 b Prints: FFT The expression used to assign variable b1 is equivalent to the expression used to assign variable b2. The results demonstrate that the conditional operator (?

groups from right-to-left.
Help!
Thanks in advance.
Jerry Bustamente