J2EE Spring Hibernate Self Test: Chapters 22 to 26

Question 1:
Given:
class TestTernaryOp {
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?
A. null
B. life
C. universe
D. everything
E. Compilation fails
F. An exception is thrown at runtime

Question 2:
Given:
1. class TestEqualityOps {
2. public static void main(String[] args) {