concept enum in category java

This is an excerpt from Manning's book Java SE 11 Programmer I Certification Guide.
Java supports programming in multiple paradigms. Ever since its introduction, it supported programming with object-oriented paradigm by emulating real-life object definition and behavior. In real life, state and behavior are tied to an object. Java code is defined within classes, interfaces, or enums. Instances enables you to use their functionality.
A Java source file, that is, .java file, is used to define all types – classes, interfaces, annotations, enums, and module descriptors.

This is an excerpt from Manning's book OCA Java SE 8 Programmer I Certification Guide.
Purpose: Note the type of the variable that’s passed as an argument to the switch construct. Among the primitive data types, you can pass on variables of types byte, short, char, and int to a switch construct. Other data types that you can pass to a switch construct are Byte, Short, Integer, Character, enum, and String.
For your real projects, it is possible to access private members of a classoutside them, using Java reflection. But Java reflection isn’t on the exam. So don’t consider it when answering questions on the accessibility of private members.
package javacompiler; import javavirtualmachine.*; class EJavaGuru { void method1() {} int count; }