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.
Class[] interfaces = {SomeInterfaceWithMethods.class}; - what is this??? {} it's a static block or what???
Justin SmithLevel 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
GO TO FULL VERSION