Consider the following two method invocations. Are there values of index1 that
are allowed but that are not allowed for index2? Are there values of index2 that
are allowed but that are not allowed for index1? list is an object of the class
list.set(index1, "Hello");
list.add(index2, "Hello");
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here