Self-Review Questions

  1. What is a Set? List? Map?

  2. What is an iterator and why are iterators necessary?

  3. Why can't you make an object of type ArrayList<int>? What should you do instead?

  4. Implement a method that prints a given ArrayList<String> using an Iterator interface

  5. Implement a method that prints a given ArrayList<String> using a for-each loop

  6. What are the advantages of using generics?

  7. Are generics available at runtime?