When the compiler finds a character ?, it searches for the appropriate one :. The expression before ?is the first operand of the ternary conditional operator that represents the condition.
? : , , .
: , , .
boolean t1 = false ? false : true?false:true?false:true;
first second third
operand operand operand
, true?false:true?false:true, :
true ? false : true?false:true;
first second third
operand operand operand
, - false.
BTW, true?false:true false, x?false:true?false:true false x.