Operators

© examsiri.com
Question : 5 of 23
 
Marks: +1, -0
Given:
class Hexy {
  public static void main(String[] args) {
   Integer i = 42;
   String s = (i<40)?"life":(i>50)?"universe":"everything";
   System.out.println(s);
  }
}

What is the result?
Go to Question: