[HD-OCP17/21-Fundamentals Pg 0, Sec. 16.1.3 - syntax-for-using-generic-types]
Posted: Wed Jan 08, 2025 7:07 pm
Hello in the code example:
the "super" should say using lower bounded wildcard.
Thanks!
Code: Select all
//I will discuss wildcards in the next section
List<?> iList; //using unbounded wildcard
List<? extends Integer> iList; //using upper bounded wildcard
List<? super Integer> iList;//using upper bounded wildcard
Thanks!