This StackOverflow answer explains the different between List.of and Arrays.asList.
In a nutshell, Arrays.asList allows us to create a mutable list and List.of creates an inmutable list. Also, the list created with Arrays.asList can hold null values.