Computer Science 3310
Spring 2008
Practice questions for quiz 3

  1. Understand how to solve all of quiz 2.

  2. What is an interface in Java?

  3. Is there a limit on the number of interfaces that a Java class can implement?

  4. Would it ever make sense to have a class B that extends class A, where class B overrides every method in class A? Why or why not?

  5. Suppose that Mammal and Monkey are two classes, where Monkey is a subclass of Mammal. Is Monkey[] a subclass of Mammal[]? Is LinkedList<Monkey> a subclass of LinkedList<Mammal>?