The following is a limitation of my list.
static List<Integer> list = Arrays.asList(112, 323, 368, 369, 378);
The list has a fixed size of 5.
When calling add like this
list.add(200);
Isn't that a compile-time error? Rather, he threw below runtime exceptions
java.lang.UnsupportedOperationException
source share