Given:
class Main { public static void main(String[] args) { int i = 42; String s = (i<40)?"life":(i>50)?"universe":"everything"; System.out.println(s); } }
What is the result?
D is correct.
This is a ternary nested in a ternary.
Both of the ternary expressions are false.