1: public class Main { 2: public static void main(String[] args) { 3: int x = 0; 4: while(x++ < 5) {} 5: String message = x > 5 ? "Greater than" : false; 6: System.out.println(message+","+x); 7: } 8: }
F.
The ternary operator has two expressions, one of them is of type String and the other is of boolean value.
The ternary operator allows to unmatching types.
The assignment of the ternary operator is asking for the String reference.