What do these generic wildcards mean in java?

  Kiến thức lập trình

I am currently making a mod for a game, until I saw this:

public class Player<T extends Entity & Mob> { 

}

I don’t understand what those generics mean. I have never seen it before. I mean, I know Player, but not Player<T extends Entity & Mob>. Can someone explain to me what this means? Thank you!

I tried figuring out what it means, but I still don’t know

New contributor

Bruce Wayne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT