Question: Fill in the blanks in each of the following: a) _______Enable you to specify, with a single method declaration, a set of related methods; _______enable
Fill in the blanks in each of the following:
a) _______Enable you to specify, with a single method declaration, a set of related methods; _______enable you to specify, with a single class declaration, a set of related classes.
b) A type-parameter list is delimited by _______.
c) The _______of a generic method can be used to specify the types of the arguments to the method, to specify the return type of the method and to declare variables within the method.
d) The statement “Stack myStack = new Stack();” indicates that myStack stores _______.
e) In a generic class declaration, the class name is followed by a(n) _______.
f) The _______constraint requires that the type argument must have a public parameter less constructor.
Step by Step Solution
3.32 Rating (173 Votes )
There are 3 Steps involved in it
a Generic methods ge... View full answer
Get step-by-step solutions from verified subject matter experts
