Tasks | Level 2 | Lesson 8
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Максим Василенко
12 March 2023, 10:11
Class[] interfaces = {SomeInterfaceWithMethods.class}; - what is this??? {} it's a static block or what???
0
Justin Smith
30 August 2022, 00:52
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
+2