Step by step learning
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?
universe
Compilation fails
An exception is thrown at runtime
everything
life
null
Please log in or register to have a possibility to add comment.
Please log in or register to have a possibility to add comment.