Cons lst = null; for (int i = 0; i < 3; i++ ) lst = cons( i, lst );
What is the runtime type of first(lst)?
Answer: B
The declared type of first(lst) is Object. When this code says cons(i, lst), the compiler coerces ( autoboxes ) the int value i into the reference type Integer. Integer (a subtype of Object) is what first(lst) actually is at runtime.