Page 1 of 1

[HD-OCP17/21-Fundamentals Pg 0, Sec. 16.1.3 - syntax-for-using-generic-types]

Posted: Wed Jan 08, 2025 7:07 pm
by joaoclopes
Hello in the code example:

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
the "super" should say using lower bounded wildcard.

Thanks!

Re: [HD-OCP17/21-Fundamentals Pg 0, Sec. 16.1.3 - syntax-for-using-generic-types]

Posted: Wed Jan 08, 2025 9:35 pm
by admin
Duly noted.
thank you for your feedback!