The result of the code

Report a typo

What will be the result of compilation and execution of the following code:

class ArrayList<E> implements List<E> {

    boolean addAll(Collection<E> c) {...}     
    
    // ... other methods 
} 

List<String> strings = new ArrayList<>();
List<Object> objects = new ArrayList<>();
objects.addAll(strings);
System.out.println(objects);
Select one option from the list
___

Create a free account to access the full topic