Answers to Self-Review Exercises

  1. J.1

    1. Iterator.

    2. index.

    3. autoboxing.

    4. ArrayList, Vector.

    5. auto-unboxing.

    6. shutdown.

    7. synchronized.

  2. J.2

    1. False. Autoboxing occurs when adding a primitive type to a collection, which means the primitive type is converted to its corresponding type-wrapper class.

    2. False. A Set cannot contain duplicate values.

    3. False. A Map cannot contain duplicate keys.

    4. True.

    5. False.

    6. Collections is a class; Collection is an interface.

    7. True.

    8. True.

    9. False. Text files are human readable in a text editor. Binary files might be human readable, but only if the bytes in the file represent ASCII characters.

    10. True.

Get Android How to Program, 3/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.