Answers to Self-Review Exercises
-
Iterator
.index.
autoboxing.
ArrayList
,Vector
.auto-unboxing.
shutdown
.synchronized
.
-
False. Autoboxing occurs when adding a primitive type to a collection, which means the primitive type is converted to its corresponding type-wrapper class.
False. A
Set
cannot contain duplicate values.False. A
Map
cannot contain duplicate keys.True.
False.
Collections
is a class;Collection
is an interface.True.
True.
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.
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.