This content has been marked as final. Show 2 replies
"<?>" is used to define a wildcard type.
It is used when referring to types with generic type arguments where you don't know (or don't care) what the actual type argument is.
That's not very useful when creating objects, because you can always define something here. It's only useful when you get such an object from somewhere else.
Removing the <> altogether makes it a raw type that is only supported for backwards compatibility with pre-generics legacy code.
(By the way, please use code tags when posting code in the future. Simply select your code and push the "CODE" button just above the text area).