GENERICS IN JAVA

are generics and templates same thing ?

are generics and templates same thing ?
Answer :- Nope
One of the major features of Java Generics is that It handles type checking during instantiation and generates byte-code equivalent to non-generic code.
The compiler of Java checks type before instantiation, that in turn makes the implementation of Generic type-safe. Meanwhile, in C++, templates know nothing about types.