Skip to Content
Java How to Program, Early Objects, 11th Edition
book

Java How to Program, Early Objects, 11th Edition

by Paul J. Deitel, Harvey Deitel
June 2017
Beginner
1296 pages
69h 23m
English
Pearson
Content preview from Java How to Program, Early Objects, 11th Edition

Answers to Self-Review Exercises

  1. 16.1

    1. Iterator.

    2. index.

    3. autoboxing.

    4. ArrayList.

    5. unmodifiable wrapper.

    6. auto-un-boxing.

    7. disjoint.

  2. 16.2 Answers for a) through h):

    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. Collections is a class; Collection is an interface.

    6. True.

    7. False. As the load factor increases, fewer slots are available relative to the total number of slots, so the chance of a collision increases.

    8. False. Attempting to insert a null element causes a NullPointerException.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17

Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17

Kishori Sharan, Adam L. Davis
Learning Java, 5th Edition

Learning Java, 5th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
Java in a Nutshell, 8th Edition

Java in a Nutshell, 8th Edition

Benjamin J. Evans, Jason Clark, David Flanagan

Publisher Resources

ISBN: 9780134751962