What is the difference between
The difference between
T is that
Class<T> represents metadata about
T. You can look up
T's methods and fields, and also create new instances by calling
As far as creating
Class<T> objects goes, the simplest approach is to use
MyClass.class syntax, e.g.
Class<TermlistRequest> tr = TermlistRequest.class;
Class (but not
Class<T>) objects can also be obtained by resolving classes dynamically.