Question: what is the meaning of x = 0 in java?
Answer: In this case: this. x = x < 0? ... This means that the value of x is dependent on the condition (the one before the question mark x < 0 ), the value of x is the first (the value before the : which is 0 ) if the condition evaluates to true, else the second value (the value after the : which is x itself).