Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.
Fun, engaging games to boost memory, math fluency, typing speed, and English skills—perfect for learners of all ages.
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Test your understanding with targeted questions related to the topic.
Question 1
Easy
What is the syntax for an upper bound wildcard?
💡 Hint: Look for the keyword 'extends'.
Question 2
Easy
What kind of types can be used with a lower bound wildcard?
💡 Hint: Think of what superclass means.
Practice 4 more questions and get performance evaluation
Engage in quick quizzes to reinforce what you've learned and check your comprehension.
Question 1
What does List<? extends Number>
allow?
💡 Hint: Think about the subclasses!
Question 2
Can you add elements to a List defined as List<? extends Number>
?
💡 Hint: Consider how wildcards restrict adding elements.
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
Design a generic method that can accept a list of pets which are subclasses of a superclass, and also allow adding mammals to a list of animals.
💡 Hint: Consider what types you want to allow and what you need to insert.
Question 2
How would you refactor a method that uses non-bounded types into one that effectively uses bounded wildcards?
💡 Hint: Identify where you need to read and write in your current implementation.
Challenge and get performance evaluation