The generic class has the same behavior for all of its possible parametric types. The same generic class can be viewed each time as if it has a different parametric type. For the JVM it doesn’t matter which parametric type we chose to instantiate a generic class with. In all cases, for the JVM it is the same class. Generics implementation in Java is in the compiler level. The following video clips show that.

Stable Values in Java (JEP 502): Deferred Immutability with JVM Trust
Explore Stable Values – a new Java 25 upcoming feature (JEP 502) enabling lazy initialization with immutable performance and JVM-level optimizations.