CodeGym /Courses /Java Collections /Tasks | Level 2 | Lesson 8

Tasks | Level 2 | Lesson 8

Java Collections
Level 2 , Lesson 8
Available

"Hi, Amigo! I came up with a couple of interesting tasks for you."

"They can only be completed in IntelliJ IDEA. Take a look at these interesting conditions…"

14
Task
Java Collections, level 2, lesson 8
Locked
Creating a proxy object
Creating a proxy object
14
Task
Java Collections, level 2, lesson 8
Locked
Generics for creating a proxy object
Generics for creating a proxy object
Comments (3)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Evgeniia Shabaeva Level 42, Budapest, Hungary
16 June 2025
About the second task: AI gently and kindly explained to me how to create a proxy in this context; it taught me a lot, and I completed the task. I wish the course included a tutorial like that.
Максим Василенко Level 44, Kiev, Ukraine
12 March 2023
Class[] interfaces = {SomeInterfaceWithMethods.class}; - what is this??? {} it's a static block or what???
Justin Smith Level 41, Greenfield, USA, United States
30 August 2022
If, like me, you were utterly stumped by the second task here, then still just as stumped after looking at the solution... Well, for me, I realized that I had no idea what the difference was between using the generic <T> vs. <?>. They both refer to an unknown object type, so when you use each of them? I found the top-ranked explanation here very useful and I recommend it for anyone else who is having difficulty with this subject. https://stackoverflow.com/questions/10943137/difference-between-generic-type-and-wildcard-type