Chapter 12Enumerations, Autoboxing, Static Import, and Annotations

Key Skills & Concepts

Image Understand enumeration fundamentals

Image Use the class-based features of enumerations

Image Apply the values( ) and valueof( ) methods to enumerations

Image Create enumerations that have constructors, instance variables, and methods

Employ the ordinal( ) and compareTo( )

Get Java, A Beginner's Guide, 5th Edition, 5th Edition 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.