let me give you an example (client-server communication), let's say we have the following class:
public class Message<Data, From extends Connectable, To extends Connectable>
Connectable is an interface that both the client and server implements.
My question is when creating an instance of Message do I have to add <?, ?, ?> to the type?
Message<?, ?, ?> m = new Message<>(...);
or
Message m = new Message<>(...);
I know <?> is a wildcard shortcut for <? extends Object> I just don't get when do I have to add this? Is there any difference? Thanks!