Setting a new name

Report a typo

You have the following list:

List<String> names = List.of("Larry", "Kenny", "Sabrina");

What happens if someone invokes the set(0, "Mary") method on this list?

Select one option from the list
___

Create a free account to access the full topic