Java Professional — Easy
Key points
- `List.of()` creates an unmodifiable list
- The elements passed are added to the list
- This method is available in Java 9+
- It returns a List interface implementation
- The list is immutable
Ready to go further?
Related questions
