1. HashSets
2. ArrayLists
3. Reflections
4. Records
5. Optionals
New things in Java 21
- Default access specifier for all attributes and methods of a class is
public. - No need to specify the main method within a class that has the same name as the filename.