Suppose that we say:

Cons lst = null;
for (int i = 0; i < 3; i++ )
    lst = cons( i, lst );

What is the type of first(lst) as seen by the compiler?

  • A: int
  • B: Integer
  • C: short
  • D: Cons
  • E: Object

    Answer

    Contents    Page-10    Prev    Next    Page+10    Index