"All instances of a generic class have the same runtime class, regardless of their actual type parameters. So it is not meaningful to use the instanceof operator to check if an object is the instance of a particular invocation of a generic type."
Could you please explain by using code ?
"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself