The result of the code

Report a typo

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

import java.util.ArrayList;
import java.util.List;

public class Application {
  
  public static void main(String[] args) {
    System.out.println(wildcardsTest(new ArrayList<>()));  
  }
  
  public static Integer wildcardsTest(List<? extends Integer> numbers) {
    numbers.add(null);
    return numbers.get(0);
  }

}
Select one option from the list
___

Create a free account to access the full topic