ABSTRACT

The main goal of the chapter is to introduce the reader to the ArrayList class. It allows us to create an array without specifying the size of the array. Creating an array this way is much more convenient because the amount of main memory that is needed by the array is automatically managed. The chapter also covers the topic of immutable objects. These are objects that cannot be modified. Lastly, the chapter focuses on the enum construct. Unlike a class that can merge several primitive types, an enum is used to define a type that is restricted to a finite subset of a primitive type.