Question from the Java test

What is the result of executing the following code: ```java var list= List.of("1","2","3"); list.add("4"); list.forEach(elt ->System.out.print(elt)); ``` Answer: An exception