public class Testing {
public static void main(String[] args) {
List<? extends Integer> list = new ArrayList<>();
list.add(new Integer(21));
}
}
What is the compilation error in line#4?
public class Testing {
public static void main(String[] args) {
List<? extends Integer> list = new ArrayList<>();
list.add(new Integer(21));
}
}
What is the compilation error in line#4?