Question: Why is it necessary to provide type arguments when instantiating a generic class, but not when invoking an instantiation of a generic method?
Why is it necessary to provide type arguments when instantiating a generic class, but not when invoking an instantiation of a generic method?
Step by Step Solution
3.33 Rating (144 Votes )
There are 3 Steps involved in it
Generic classes and methods in Java use type parameters as placeholders for the actual types they sh... View full answer
Get step-by-step solutions from verified subject matter experts
